|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException mazz.i18n.exception.LocalizedRuntimeException
public class LocalizedRuntimeException
A generic runtime exception that provides localized messages.
Msg
,
Serialized FormConstructor Summary | |
---|---|
LocalizedRuntimeException()
Constructor for LocalizedRuntimeException . |
|
LocalizedRuntimeException(java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedRuntimeException . |
|
LocalizedRuntimeException(Msg.BundleBaseName bundle,
java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedRuntimeException . |
|
LocalizedRuntimeException(Msg.BundleBaseName bundle,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedRuntimeException . |
|
LocalizedRuntimeException(Msg msg)
Constructor for LocalizedRuntimeException that explicitly takes the localized message. |
|
LocalizedRuntimeException(java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedRuntimeException . |
|
LocalizedRuntimeException(java.lang.Throwable cause)
Constructor for LocalizedRuntimeException . |
|
LocalizedRuntimeException(java.lang.Throwable cause,
java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedRuntimeException . |
|
LocalizedRuntimeException(java.lang.Throwable cause,
Msg.BundleBaseName bundle,
java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedRuntimeException . |
|
LocalizedRuntimeException(java.lang.Throwable cause,
Msg.BundleBaseName bundle,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedRuntimeException . |
|
LocalizedRuntimeException(java.lang.Throwable cause,
Msg msg)
Constructor for LocalizedRuntimeException that explicitly takes the localized message. |
|
LocalizedRuntimeException(java.lang.Throwable cause,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedRuntimeException . |
Method Summary | |
---|---|
java.lang.String |
getLocalizedMessage()
This will return the localized message if one exists, otherwise, delegates to the superclass's getMessage() . |
java.lang.String |
getMessage()
This will return the localized message if one exists, otherwise, delegates to the superclass. |
java.lang.String |
getStackTraceString()
Convenience method that returns the stack trace as a String. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocalizedRuntimeException()
LocalizedRuntimeException
.
public LocalizedRuntimeException(java.lang.Throwable cause)
LocalizedRuntimeException
.
cause
- public LocalizedRuntimeException(Msg.BundleBaseName bundle, java.util.Locale locale, java.lang.String key, java.lang.Object... varargs)
LocalizedRuntimeException
.
bundle
- the basename of the resource bundle where the localized message can be foundlocale
- the locale used to determine the specified resource bundle to usekey
- the key into the resource bundle to identify the specific message to getvarargs
- optional arguments to help fill in the localized messagepublic LocalizedRuntimeException(java.util.Locale locale, java.lang.String key, java.lang.Object... varargs)
LocalizedRuntimeException
.
locale
- the locale used to determine the specified resource bundle to usekey
- the key into the resource bundle to identify the specific message to getvarargs
- optional arguments to help fill in the localized messagepublic LocalizedRuntimeException(Msg.BundleBaseName bundle, java.lang.String key, java.lang.Object... varargs)
LocalizedRuntimeException
.
bundle
- the basename of the resource bundle where the localized message can be foundkey
- the key into the resource bundle to identify the specific message to getvarargs
- optional arguments to help fill in the localized messagepublic LocalizedRuntimeException(java.lang.String key, java.lang.Object... varargs)
LocalizedRuntimeException
.
key
- the key into the resource bundle to identify the specific message to getvarargs
- optional arguments to help fill in the localized messagepublic LocalizedRuntimeException(Msg msg)
LocalizedRuntimeException
that explicitly takes the localized message.
msg
- the localized messagepublic LocalizedRuntimeException(java.lang.Throwable cause, Msg.BundleBaseName bundle, java.util.Locale locale, java.lang.String key, java.lang.Object... varargs)
LocalizedRuntimeException
.
cause
- bundle
- the basename of the resource bundle where the localized message can be foundlocale
- the locale used to determine the specified resource bundle to usekey
- the key into the resource bundle to identify the specific message to getvarargs
- optional arguments to help fill in the localized messagepublic LocalizedRuntimeException(java.lang.Throwable cause, java.util.Locale locale, java.lang.String key, java.lang.Object... varargs)
LocalizedRuntimeException
.
cause
- locale
- the locale used to determine the specified resource bundle to usekey
- the key into the resource bundle to identify the specific message to getvarargs
- optional arguments to help fill in the localized messagepublic LocalizedRuntimeException(java.lang.Throwable cause, Msg.BundleBaseName bundle, java.lang.String key, java.lang.Object... varargs)
LocalizedRuntimeException
.
cause
- bundle
- the basename of the resource bundle where the localized message can be foundkey
- the key into the resource bundle to identify the specific message to getvarargs
- optional arguments to help fill in the localized messagepublic LocalizedRuntimeException(java.lang.Throwable cause, java.lang.String key, java.lang.Object... varargs)
LocalizedRuntimeException
.
cause
- key
- the key into the resource bundle to identify the specific message to getvarargs
- optional arguments to help fill in the localized messagepublic LocalizedRuntimeException(java.lang.Throwable cause, Msg msg)
LocalizedRuntimeException
that explicitly takes the localized message.
cause
- msg
- the localized messageMethod Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Throwable.getMessage()
public java.lang.String getLocalizedMessage()
getMessage()
.
getLocalizedMessage
in class java.lang.Throwable
Throwable.getLocalizedMessage()
public java.lang.String getStackTraceString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |