|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
local.tomas.i18n.LocalizedException
public abstract class LocalizedException
Base class for an exception with a language dependent message.
| Constructor Summary | |
|---|---|
protected |
LocalizedException()
Default constructor |
protected |
LocalizedException(String message)
Construct exception from message. |
protected |
LocalizedException(String message,
Object arg)
Construct exception from message and a single message argument. |
protected |
LocalizedException(String message,
Object[] args)
Construct exception from message and message arguments. |
protected |
LocalizedException(String message,
Object[] args,
Throwable cause)
Construct exception from message, message arguments and a cause. |
protected |
LocalizedException(String message,
Object arg,
Throwable cause)
Construct exception from message, a single message argument, and a cause. |
protected |
LocalizedException(String message,
Throwable cause)
Construct exception from message and a cause. |
protected |
LocalizedException(Throwable cause)
Construct exception from a cause. |
| Method Summary | |
|---|---|
protected Locale |
getLocale()
Get locale. |
String |
getLocalizedMessage()
|
String |
getMessage()
|
protected abstract Messages |
getMessages()
|
String |
toString()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected LocalizedException(String message,
Object[] args)
message - message identifierargs - arguments for this message
protected LocalizedException(String message,
Object[] args,
Throwable cause)
message - message identifierargs - arguments for this messagecause - throwable this excaption is caused byprotected LocalizedException(String message)
message - message identifier
protected LocalizedException(String message,
Throwable cause)
message - message identifiercause - throwable this excaption is caused byprotected LocalizedException(Throwable cause)
cause - throwable this excaption is caused byprotected LocalizedException()
protected LocalizedException(String message,
Object arg)
message - message identifierarg - argument for this message
protected LocalizedException(String message,
Object arg,
Throwable cause)
message - message identifierarg - argument for this messagecause - throwable this excaption is caused by| Method Detail |
|---|
public String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic String getMessage()
getMessage in class Throwablepublic String toString()
toString in class Throwableprotected Locale getLocale()
protected abstract Messages getMessages()
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||