|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
mazz.i18n.exception.LocalizedException
public class LocalizedException
A generic exception that provides localized messages.
Msg,
Serialized Form| Constructor Summary | |
|---|---|
LocalizedException()
Constructor for LocalizedException. |
|
LocalizedException(java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedException. |
|
LocalizedException(Msg.BundleBaseName bundle,
java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedException. |
|
LocalizedException(Msg.BundleBaseName bundle,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedException. |
|
LocalizedException(Msg msg)
Constructor for LocalizedException that explicitly takes the localized message. |
|
LocalizedException(java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedException. |
|
LocalizedException(java.lang.Throwable cause)
Constructor for LocalizedException. |
|
LocalizedException(java.lang.Throwable cause,
java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedException. |
|
LocalizedException(java.lang.Throwable cause,
Msg.BundleBaseName bundle,
java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedException. |
|
LocalizedException(java.lang.Throwable cause,
Msg.BundleBaseName bundle,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedException. |
|
LocalizedException(java.lang.Throwable cause,
Msg msg)
Constructor for LocalizedException that explicitly takes the localized message. |
|
LocalizedException(java.lang.Throwable cause,
java.lang.String key,
java.lang.Object... varargs)
Constructor for LocalizedException. |
|
| 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 LocalizedException()
LocalizedException.
public LocalizedException(java.lang.Throwable cause)
LocalizedException.
cause -
public LocalizedException(Msg.BundleBaseName bundle,
java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
LocalizedException.
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 message
public LocalizedException(java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
LocalizedException.
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 message
public LocalizedException(Msg.BundleBaseName bundle,
java.lang.String key,
java.lang.Object... varargs)
LocalizedException.
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 message
public LocalizedException(java.lang.String key,
java.lang.Object... varargs)
LocalizedException.
key - the key into the resource bundle to identify the specific message to getvarargs - optional arguments to help fill in the localized messagepublic LocalizedException(Msg msg)
LocalizedException that explicitly takes the localized message.
msg - the localized message
public LocalizedException(java.lang.Throwable cause,
Msg.BundleBaseName bundle,
java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
LocalizedException.
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 message
public LocalizedException(java.lang.Throwable cause,
java.util.Locale locale,
java.lang.String key,
java.lang.Object... varargs)
LocalizedException.
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 message
public LocalizedException(java.lang.Throwable cause,
Msg.BundleBaseName bundle,
java.lang.String key,
java.lang.Object... varargs)
LocalizedException.
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 message
public LocalizedException(java.lang.Throwable cause,
java.lang.String key,
java.lang.Object... varargs)
LocalizedException.
cause - key - the key into the resource bundle to identify the specific message to getvarargs - optional arguments to help fill in the localized message
public LocalizedException(java.lang.Throwable cause,
Msg msg)
LocalizedException that explicitly takes the localized message.
cause - msg - the localized message| Method Detail |
|---|
public java.lang.String getMessage()
getMessage in class java.lang.ThrowableThrowable.getMessage()public java.lang.String getLocalizedMessage()
getMessage().
getLocalizedMessage in class java.lang.ThrowableThrowable.getLocalizedMessage()public java.lang.String getStackTraceString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||