|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A simple interface for exceptions that support different error cases (described by id's), exception type (severity) and support localization.
| Field Summary | |
static int |
EXCEPTION_TYPE_EXCEPTION
Exception-Type: normal exception. |
static int |
EXCEPTION_TYPE_INFO
Exception-Type: info. |
static int |
EXCEPTION_TYPE_WARNING
Exception-Type: warning. |
| Method Summary | |
java.util.Map |
getArgs()
Returns all arguments of the exception. |
java.lang.String |
getID()
Returns the exception identifier of the exception (never null).
|
java.lang.String |
getName()
Returns the full name of this exception (never null).
|
int |
getType()
Returns the exception type. |
java.lang.String |
getUnlocalizedMessagePattern(java.lang.String id)
Returns an unlocalized exception message pattern. |
| Field Detail |
public static final int EXCEPTION_TYPE_EXCEPTION
public static final int EXCEPTION_TYPE_WARNING
public static final int EXCEPTION_TYPE_INFO
| Method Detail |
public java.lang.String getID()
null).
The exception identifier is a string that differs between various
instances of the same exception class.
public java.lang.String getName()
null).
The name should be unique for all implementations (??instances??) of
NamedException. The first part should be the class name
(without package name) followed by a dot (".") and the exception
name. This name will be used to localize the exception.
public int getType()
EXCEPTION_TYPE_EXCEPTION, EXCEPTION_TYPE_WARNING or
EXCEPTION_TYPE_INFO.
public java.util.Map getArgs()
null).public java.lang.String getUnlocalizedMessagePattern(java.lang.String id)
id - the exception identifier (see getID()())
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||