org.pdfsam.emp4j.exceptions
Class ObjectKeyException

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

public class ObjectKeyException
extends ParentEmp4jException

It behaves getting error messages from the ExceptionMessageHandler using exceptionKeyCode key Object. If you want to use ObjectKeyException as a superclass, your InquirableMessagesSource must be able to use the Object key to get the exception type description.

Author:
Andrea Vacondio
See Also:
InquirableMessagesSource, Serialized Form

Field Summary
 
Fields inherited from class org.pdfsam.emp4j.exceptions.ParentEmp4jException
errorMessage, localizedErrorMessage
 
Constructor Summary
ObjectKeyException(java.lang.Object exceptionKeyCode, int exceptionErrorCode)
           
ObjectKeyException(java.lang.Object exceptionKeyCode, int exceptionErrorCode, java.lang.String[] args)
           
ObjectKeyException(java.lang.Object exceptionKeyCode, int exceptionErrorCode, java.lang.String[] args, java.lang.Throwable e)
           
ObjectKeyException(java.lang.Object exceptionKeyCode, int exceptionErrorCode, java.lang.Throwable e)
           
ObjectKeyException(java.lang.Object exceptionKeyCode, java.lang.Throwable e)
          Constructor using the DEFAULT_ERROR_CODE for this class
ObjectKeyException(java.lang.Throwable t)
          It doesn't use the emp4j framework to get the exception message.
 
Method Summary
 
Methods inherited from class org.pdfsam.emp4j.exceptions.ParentEmp4jException
getExceptionMessage, getLocalizedExceptionMessage, getLocalizedMessage, 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
 

Constructor Detail

ObjectKeyException

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

Parameters:
t -

ObjectKeyException

public ObjectKeyException(java.lang.Object exceptionKeyCode,
                          java.lang.Throwable e)
Constructor using the DEFAULT_ERROR_CODE for this class

Parameters:
exceptionKeyCode - Object key to get the exception type description
e -

ObjectKeyException

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

ObjectKeyException

public ObjectKeyException(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 place holders
e -

ObjectKeyException

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

ObjectKeyException

public ObjectKeyException(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 substitue place holders