|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.commons.lang.exception.NestableException
org.apache.turbine.TurbineException
org.tigris.scarab.util.ScarabException
This class extends TurbineException and does not change its functionality. It should be used to mark Scarab specific exceptions. In order to ensure localization of Exception messages, ScarabException adds a new type of message, the L10NMessage.
| Field Summary |
| Fields inherited from class org.apache.commons.lang.exception.NestableException |
delegate |
| Fields inherited from class java.lang.Exception |
|
| Constructor Summary | |
ScarabException(Localizable theL10nInstance)
Constructs a new ScarabException with specified
Localizable . |
|
ScarabException(Localizable theL10nInstance,
java.lang.Throwable nested)
Constructs a new ScarabException with specified
Localizable and a nested Throwable. |
|
ScarabException(LocalizationKey theKey)
Constructs a new ScarabException with specified
resource and no parameters. |
|
ScarabException(LocalizationKey theKey,
java.lang.Object p1)
convenience constructor: Constructs a new ScarabException
with specified resource and one parameter. |
|
ScarabException(LocalizationKey theKey,
java.lang.Object[] theParams)
Constructs a new ScarabException with specified
resource and a list of parameters. |
|
ScarabException(LocalizationKey theKey,
java.lang.Object p1,
java.lang.Object p2)
convenience constructor: Constructs a new ScarabException
with specified resource and two parameters. |
|
ScarabException(LocalizationKey theKey,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
convenience constructor: Constructs a new ScarabException
with specified resource and three parameters. |
|
ScarabException(LocalizationKey theKey,
java.lang.Throwable nested)
Constructs a new ScarabException with specified
resource and a nested Throwable. |
|
ScarabException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1)
convenience constructor: Constructs a new ScarabException
with specified resource, nested Throwable and one parameter. |
|
ScarabException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object[] theParams)
convenience constructor: Constructs a new ScarabException
with specified resource, nested Throwable and an aritrary set of parameters. |
|
ScarabException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1,
java.lang.Object p2)
convenience constructor: Constructs a new ScarabException
with specified resource, nested Throwable and two parameters. |
|
ScarabException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
convenience constructor: Constructs a new ScarabException
with specified resource, nested Throwable and three parameters. |
|
| Method Summary | |
Localizable |
getL10nMessage()
return the L10NInstance, or null, if no L10N key was given. |
java.lang.String |
getLocalizedMessage()
|
java.lang.String |
getMessage()
return the localized message in english. |
java.lang.String |
getMessage(ScarabLocalizationTool l10n)
Deprecated. Does not follow core java patterns. Use setLocalizer(..) then getLocalizedMessage() instead. |
void |
setLocalizer(ScarabLocalizationTool localizer)
Setter for property l10n. |
| 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 |
public ScarabException(LocalizationKey theKey)
ScarabException with specified
resource and no parameters.
theKey - the l10n error key.
public ScarabException(LocalizationKey theKey,
java.lang.Throwable nested)
ScarabException with specified
resource and a nested Throwable.
theKey - the l10n error key.nested - public ScarabException(Localizable theL10nInstance)
ScarabException with specified
Localizable .
theL10nInstance - the l10n error key.
public ScarabException(Localizable theL10nInstance,
java.lang.Throwable nested)
ScarabException with specified
Localizable and a nested Throwable.
theL10nInstance - the l10n error key.nested -
public ScarabException(LocalizationKey theKey,
java.lang.Object[] theParams)
ScarabException with specified
resource and a list of parameters.
theParams -
public ScarabException(LocalizationKey theKey,
java.lang.Object p1)
ScarabException
with specified resource and one parameter.
p1 -
public ScarabException(LocalizationKey theKey,
java.lang.Object p1,
java.lang.Object p2)
ScarabException
with specified resource and two parameters.
p1 - p2 -
public ScarabException(LocalizationKey theKey,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
ScarabException
with specified resource and three parameters.
p1 - p2 - p3 -
public ScarabException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object[] theParams)
ScarabException
with specified resource, nested Throwable and an aritrary set of parameters.
theKey - nested - theParams -
public ScarabException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1)
ScarabException
with specified resource, nested Throwable and one parameter.
theKey - nested - p1 -
public ScarabException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1,
java.lang.Object p2)
ScarabException
with specified resource, nested Throwable and two parameters.
theKey - nested - p1 - p2 -
public ScarabException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
ScarabException
with specified resource, nested Throwable and three parameters.
theKey - nested - p1 - p2 - p3 - | Method Detail |
public Localizable getL10nMessage()
public java.lang.String getMessage(ScarabLocalizationTool l10n)
getMessage
l10n -
public java.lang.String getMessage()
getMessage
Currently it is possible, that a ScarabException
contains NO L10NInstance. This is due to the deprecated
constructors ScarabException
and ScarabException
Eventually (after these constructors have been deleted
from the code base) we guarantee, that ScarabException
is fully localized.
public void setLocalizer(ScarabLocalizationTool localizer)
public java.lang.String getLocalizedMessage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||