public abstract class UESRuntimeException
extends java.lang.RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
UESRuntimeException.E05100
Default error code for exceptions.
|
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_MSG
Default error message for exception.
|
private java.lang.String |
detailedMessage
Formated and localized message of exception.
|
private ErrorCode |
errorCode |
protected static java.lang.String |
EXCEPTION_SEQ
Last exception-class sequence item.
|
private java.util.UUID |
ID
UUID of exception.
|
private java.util.List<Message> |
messages
List of exception messages.
|
private static long |
serialVersionUID
Serial version UID.
|
Modifier | Constructor and Description |
---|---|
protected |
UESRuntimeException()
Creates new instance of UESRuntimeException.
|
protected |
UESRuntimeException(ErrorCode aCode,
Creates a new instance of UESRuntimeException.
|
Modifier and Type | Method and Description |
---|---|
void |
addMessages(Message... aMessage)
Adds more messages to exception.
|
protected boolean |
containsMessages() |
ErrorCode |
getErrorCode() |
java.util.UUID |
getID() |
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getMessage() |
java.util.List<Message> |
getMessages()
Returns list of all exception messages.
|
protected java.lang.String |
getSimpleMessage() |
private java.lang.String |
prepareMessage(java.lang.Throwable aThrowable)
Prepares message from given instance of throwable.
|
void |
setID(java.util.UUID aID) |
aCode
- The unique code of Exception used for localization of
messages.aDefaultMessage
- The default message used when no localization file
was found.aParameters
- The parameters for message.aCause
- The exception that cases the original problem.getLocalizedMessage
in class java.lang.Throwable
Throwable.getLocalizedMessage()
getMessage
in class java.lang.Throwable
Throwable.getMessage()
aID
- the IdaMessage
- Exception messages to be addedaThrowable
- Instance of throwable