org.tigris.scarab.util
Class ScarabLocalizedTorqueException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.commons.lang.exception.NestableException
              extended byorg.apache.torque.TorqueException
                  extended byorg.tigris.scarab.util.ScarabLocalizedTorqueException
All Implemented Interfaces:
Localizable, org.apache.commons.lang.exception.Nestable, java.io.Serializable

public class ScarabLocalizedTorqueException
extends org.apache.torque.TorqueException
implements Localizable

A TorqueException ready for internationalization [in the Scarab L10N framework].

Version:
$Id: ScarabLocalizedTorqueException.java 9088 2004-05-01 19:10:51Z dabbous $
Author:
Hussayn Dabbous
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.commons.lang.exception.NestableException
delegate
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
ScarabLocalizedTorqueException(java.lang.Throwable t)
          Constructs a TorqueException wrapper for a given throwable.
 
Method Summary
 java.lang.String getLocalizedMessage()
          Return the localized message for that throwable, if a localizer was defined using setLocalizer(ScarabLocalizationTool)
 java.lang.String getMessage()
          Delegator for the wrapped exceptions getMessage() method.
 java.lang.String getMessage(ScarabLocalizationTool l10n)
          Localize this exception using the wrapped throwable.
 void setLocalizer(ScarabLocalizationTool theLocalizer)
          Set the localizer to be used in later calls to getLocalizedMessage()
 
Methods inherited from class org.apache.commons.lang.exception.NestableException
getCause, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScarabLocalizedTorqueException

public ScarabLocalizedTorqueException(java.lang.Throwable t)
Constructs a TorqueException wrapper for a given throwable. The wrapper is simply a container with no special functionality.

Method Detail

setLocalizer

public void setLocalizer(ScarabLocalizationTool theLocalizer)
Set the localizer to be used in later calls to getLocalizedMessage()

Parameters:
theLocalizer - the localizer (may be null)

getMessage

public java.lang.String getMessage()
Delegator for the wrapped exceptions getMessage() method.

Specified by:
getMessage in interface Localizable
Returns:
the wrapped exception's message

getMessage

public java.lang.String getMessage(ScarabLocalizationTool l10n)
Localize this exception using the wrapped throwable. return the localized message, else return the message string of the wrapped throwable.

Specified by:
getMessage in interface Localizable
Parameters:
l10n -
Returns:

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Return the localized message for that throwable, if a localizer was defined using setLocalizer(ScarabLocalizationTool)

Returns:
the localized message.


Copyright © 2000-2004 Tigris.org. All Rights Reserved.