| java.lang.Object java.lang.Throwable java.lang.Exception org.jaffa.exceptions.CustomException
All known Subclasses: org.jaffa.exceptions.ApplicationException, org.jaffa.exceptions.FrameworkException,
CustomException | abstract public class CustomException extends Exception (Code) | | This is the base class for all Jaffa exceptions.
|
m_arguments | protected Object[] m_arguments(Code) | | Holds value of property arguments.
|
CustomException | protected CustomException(String errorCode)(Code) | | Creates an exception with the errorCode.
Parameters: errorCode - the errorCode |
CustomException | protected CustomException(String errorCode, Object[] arguments)(Code) | | Creates an exception with the errorCode and a cause.
Parameters: errorCode - the errorCode. Parameters: arguments - the arguments, if any, that need to be merged into the error message from the resource bundle. |
CustomException | protected CustomException(String errorCode, Object[] arguments, Throwable cause)(Code) | | Creates an exception with the errorCode and a cause.
Parameters: errorCode - the errorCode. Parameters: arguments - the arguments, if any, that need to be merged into the error message from the resource bundle. Parameters: cause - the cause. |
getArguments | public Object[] getArguments()(Code) | | Getter for property arguments.
Value of property arguments. |
getLocalizedMessage | public String getLocalizedMessage()(Code) | | This will look up the errorCode in the default resource bundle and return an appropriate message.
The errorCode will be returned as is, if no default resource bundle is specified in the framework.properties file or if no message is found for the error code.
the message from the default resource bundle for the errorCode. |
getMessage | public String getMessage()(Code) | | Returns the message from the base class.
the message from the base class. |
|
|