|
||||||||||
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 ch.elca.el4j.core.exceptions.BaseRTException
public class BaseRTException
This is the parent runtime exception of all the runtime exceptions in EL4J. It provides a few functionalities, that may or may not be used by child exceptions:
For more information on the format for the
parameter substitution
,
Serialized FormField Summary | |
---|---|
protected String |
m_message
Contains either the message of the exception or when message format is used, the messageFormat. |
protected Object[] |
m_messageFormatParameters
The parameters to substitute. |
Constructor Summary | |
---|---|
BaseRTException(String message)
Constructor with a message. |
|
BaseRTException(String message,
Object[] parameters)
The constructor with a message in MessageFormat and parameters. |
|
BaseRTException(String message,
Object[] parameters,
Throwable wrappedException)
The constructor with a message in MessageFormat, with parameters, and with a wrapped exception (with all the formal parameters). |
|
BaseRTException(String message,
Throwable exception)
Constructor with a message and an exception. |
|
BaseRTException(Throwable exception)
Constructor with an exception. |
Method Summary | |
---|---|
Object[] |
getFormatParameters()
Gets parameters defined for the message. |
String |
getFormatString()
Returns the message pattern for MessageFormat or the
message of the exception. |
String |
getMessage()
Get the normal message for the exception. |
void |
setFormatString(String formatString)
Sets a new format String. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String m_message
protected Object[] m_messageFormatParameters
Constructor Detail |
---|
public BaseRTException(String message, Object[] parameters, Throwable wrappedException)
message
- the message of this exceptionparameters
- the parameters to substitute in the messagewrappedException
- the exception that is wrapped in this exceptionpublic BaseRTException(String message, Object[] parameters)
message
- the message of this exceptionparameters
- the parameters to substitute in the messagepublic BaseRTException(String message, Throwable exception)
message
- the message of this exceptionexception
- the exception that is wrapped in this exceptionpublic BaseRTException(String message)
message
- the message of this exceptionpublic BaseRTException(Throwable exception)
exception
- the exception that is wrapped in this exceptionMethod Detail |
---|
public String getFormatString()
MessageFormat
or the
message of the exception.
public void setFormatString(String formatString)
formatString
- replaces the messagepublic Object[] getFormatParameters()
MessageFormat
public String getMessage()
Throwable.getLocalizedMessage()
to
automatically get the message particular for your Locale.
getMessage
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |