|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.tigris.scarab.util.ScarabRuntimeException
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, ScarabRuntimeException adds a new type of message, the L10NMessage.
| Field Summary | |
(package private) Localizable |
l10nMessage
The exception message in non-localized form. |
(package private) java.lang.Throwable |
nested
Placeholder for a nested exception (may be null) |
| Fields inherited from class java.lang.RuntimeException |
|
| Constructor Summary | |
ScarabRuntimeException(Localizable theL10nInstance)
Constructs a new ScarabRuntimeException with specified
Localizable . |
|
ScarabRuntimeException(Localizable theL10nInstance,
java.lang.Throwable aNested)
Constructs a new ScarabRuntimeException with specified
Localizable and a nested Throwable. |
|
ScarabRuntimeException(LocalizationKey theKey)
Constructs a new ScarabRuntimeException with specified
resource and no parameters. |
|
ScarabRuntimeException(LocalizationKey theKey,
java.lang.Object p1)
convenience constructor: Constructs a new ScarabRuntimeException
with specified resource and one parameter. |
|
ScarabRuntimeException(LocalizationKey theKey,
java.lang.Object[] theParams)
Constructs a new ScarabRuntimeException with specified
resource and a list of parameters. |
|
ScarabRuntimeException(LocalizationKey theKey,
java.lang.Object p1,
java.lang.Object p2)
convenience constructor: Constructs a new ScarabRuntimeException
with specified resource and two parameters. |
|
ScarabRuntimeException(LocalizationKey theKey,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
convenience constructor: Constructs a new ScarabRuntimeException
with specified resource and three parameters. |
|
ScarabRuntimeException(LocalizationKey theKey,
java.lang.Throwable aNested)
Constructs a new ScarabRuntimeException with specified
resource and a nested Throwable. |
|
ScarabRuntimeException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1)
convenience constructor: Constructs a new ScarabRuntimeException
with specified resource, nested Throwable and one parameter. |
|
ScarabRuntimeException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object[] theParams)
convenience constructor: Constructs a new ScarabRuntimeException
with specified resource, nested Throwable and an aritrary set of parameters. |
|
ScarabRuntimeException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1,
java.lang.Object p2)
convenience constructor: Constructs a new ScarabRuntimeException
with specified resource, nested Throwable and two parameters. |
|
ScarabRuntimeException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
convenience constructor: Constructs a new ScarabRuntimeException
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 |
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. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
Localizable l10nMessage
getmessage methods below.
java.lang.Throwable nested
| Constructor Detail |
public ScarabRuntimeException(LocalizationKey theKey)
ScarabRuntimeException with specified
resource and no parameters.
theKey - the l10n error key.
public ScarabRuntimeException(LocalizationKey theKey,
java.lang.Throwable aNested)
ScarabRuntimeException with specified
resource and a nested Throwable.
theKey - the l10n error key.aNested - public ScarabRuntimeException(Localizable theL10nInstance)
ScarabRuntimeException with specified
Localizable .
theL10nInstance - the l10n error key.
public ScarabRuntimeException(Localizable theL10nInstance,
java.lang.Throwable aNested)
ScarabRuntimeException with specified
Localizable and a nested Throwable.
theL10nInstance - the l10n error key.aNested -
public ScarabRuntimeException(LocalizationKey theKey,
java.lang.Object[] theParams)
ScarabRuntimeException with specified
resource and a list of parameters.
theParams -
public ScarabRuntimeException(LocalizationKey theKey,
java.lang.Object p1)
ScarabRuntimeException
with specified resource and one parameter.
p1 -
public ScarabRuntimeException(LocalizationKey theKey,
java.lang.Object p1,
java.lang.Object p2)
ScarabRuntimeException
with specified resource and two parameters.
p1 - p2 -
public ScarabRuntimeException(LocalizationKey theKey,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
ScarabRuntimeException
with specified resource and three parameters.
p1 - p2 - p3 -
public ScarabRuntimeException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object[] theParams)
ScarabRuntimeException
with specified resource, nested Throwable and an aritrary set of parameters.
theKey - nested - theParams -
public ScarabRuntimeException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1)
ScarabRuntimeException
with specified resource, nested Throwable and one parameter.
theKey - nested - p1 -
public ScarabRuntimeException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1,
java.lang.Object p2)
ScarabRuntimeException
with specified resource, nested Throwable and two parameters.
theKey - nested - p1 - p2 -
public ScarabRuntimeException(LocalizationKey theKey,
java.lang.Throwable nested,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
ScarabRuntimeException
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
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||