| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
ch.elca.el4j.core.exceptions.BaseException
public class BaseException
This is the parent exception of all the 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 Form| Field 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 | |
|---|---|
BaseException(String message)
Constructor with a message.  | 
|
BaseException(String message,
              Object[] parameters)
The constructor with a message in MessageFormat and parameters.  | 
|
BaseException(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).  | 
|
BaseException(String message,
              Throwable exception)
Constructor with a message and an exception.  | 
|
BaseException(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 BaseException(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 exception
public BaseException(String message,
                     Object[] parameters)
message - the message of this exceptionparameters - the parameters to substitute in the message
public BaseException(String message,
                     Throwable exception)
message - the message of this exceptionexception - the exception that is wrapped in this exceptionpublic BaseException(String message)
message - the message of this exceptionpublic BaseException(Throwable exception)
exception - the exception that is wrapped in this exception| Method Detail | 
|---|
public String getFormatString()
MessageFormat or the
 message of the exception.
public void setFormatString(String formatString)
formatString - replaces the messagepublic Object[] getFormatParameters()
MessageFormatpublic 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 | |||||||||