org.pdfsam.emp4j.exceptions
Class ParentEmp4jException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.pdfsam.emp4j.exceptions.ParentEmp4jException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ClassNameKeyException, ObjectKeyException

public class ParentEmp4jException
extends java.lang.Exception

Parent exception with already implemented protected methods getExceptionMessage and getLocalizedExceptionMessage.

Author:
Andrea Vacondio
See Also:
ExceptionMessageProvider, Serialized Form

Field Summary
protected  java.lang.String errorMessage
           
protected  java.lang.String localizedErrorMessage
           
 
Constructor Summary
ParentEmp4jException()
          Empty constructor.
ParentEmp4jException(java.lang.Object exceptionKeyCode, int exceptionErrorCode)
           
ParentEmp4jException(java.lang.Object exceptionKeyCode, int exceptionErrorCode, java.lang.String[] args)
           
ParentEmp4jException(java.lang.Object exceptionKeyCode, int exceptionErrorCode, java.lang.String[] args, java.lang.Throwable e)
           
ParentEmp4jException(java.lang.Object exceptionKeyCode, int exceptionErrorCode, java.lang.Throwable e)
           
ParentEmp4jException(java.lang.String errorMessage)
          It doesn't use the emp4j framework to get the exception message.
ParentEmp4jException(java.lang.String errorMessage, java.lang.Throwable t)
          It doesn't use the emp4j framework to get the exception message.
ParentEmp4jException(java.lang.Throwable t)
          It doesn't use the emp4j framework to get the exception message.
 
Method Summary
protected  java.lang.String getExceptionMessage(java.lang.Object exceptionTypeKey, int exceptionErrorCode, java.lang.String[] args)
           
protected  java.lang.String getLocalizedExceptionMessage(java.lang.Object exceptionTypeKey, int exceptionErrorCode, java.lang.String[] args)
           
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

errorMessage

protected java.lang.String errorMessage

localizedErrorMessage

protected java.lang.String localizedErrorMessage
Constructor Detail

ParentEmp4jException

public ParentEmp4jException()
Empty constructor. It doesn't use the emp4j framework to get the exception message.


ParentEmp4jException

public ParentEmp4jException(java.lang.String errorMessage)
It doesn't use the emp4j framework to get the exception message.

Parameters:
errorMessage -

ParentEmp4jException

public ParentEmp4jException(java.lang.Throwable t)
It doesn't use the emp4j framework to get the exception message.

Parameters:
t -

ParentEmp4jException

public ParentEmp4jException(java.lang.String errorMessage,
                            java.lang.Throwable t)
It doesn't use the emp4j framework to get the exception message.

Parameters:
errorMessage -
t -

ParentEmp4jException

public ParentEmp4jException(java.lang.Object exceptionKeyCode,
                            int exceptionErrorCode,
                            java.lang.Throwable e)
Parameters:
exceptionKeyCode - Object key to get the exception type description
exceptionErrorCode -
e -

ParentEmp4jException

public ParentEmp4jException(java.lang.Object exceptionKeyCode,
                            int exceptionErrorCode,
                            java.lang.String[] args,
                            java.lang.Throwable e)
Parameters:
exceptionKeyCode - Object key to get the exception type description
exceptionErrorCode -
args - arguments used by the MessageFormat to substitue placeholders
e -

ParentEmp4jException

public ParentEmp4jException(java.lang.Object exceptionKeyCode,
                            int exceptionErrorCode)
Parameters:
exceptionKeyCode - Object key to get the exception type description
exceptionErrorCode -

ParentEmp4jException

public ParentEmp4jException(java.lang.Object exceptionKeyCode,
                            int exceptionErrorCode,
                            java.lang.String[] args)
Parameters:
exceptionKeyCode - Object key to get the exception type description
exceptionErrorCode -
args - arguments used by the MessageFormat to substitute place holders
Method Detail

getExceptionMessage

protected java.lang.String getExceptionMessage(java.lang.Object exceptionTypeKey,
                                               int exceptionErrorCode,
                                               java.lang.String[] args)
Parameters:
exceptionTypeKey -
exceptionErrorCode -
args -
Returns:
message

getLocalizedExceptionMessage

protected java.lang.String getLocalizedExceptionMessage(java.lang.Object exceptionTypeKey,
                                                        int exceptionErrorCode,
                                                        java.lang.String[] args)
Parameters:
exceptionTypeKey -
exceptionErrorCode -
args -
Returns:
localized message

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable