de.folt.util
Class OpenTMSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.folt.util.OpenTMSException
All Implemented Interfaces:
java.io.Serializable

public class OpenTMSException
extends java.lang.Exception

This class implements the main Exception of OpenTMS: The OpenTMSException class.
The class contains for main components (variables)
String id - an unique identifier for the cause
String[] args arguments supplied by the caller
int type the type of the Exception
Object cause the object causing the exception

Author:
klemens
See Also:
Serialized Form

Constructor Summary
OpenTMSException()
           
OpenTMSException(java.lang.String id)
           
OpenTMSException(java.lang.String id, int type)
           
OpenTMSException(java.lang.String id, java.lang.Object cause)
           
OpenTMSException(java.lang.String id, java.lang.String arg)
           
OpenTMSException(java.lang.String id, java.lang.String[] args)
           
OpenTMSException(java.lang.String id, java.lang.String[] args, int type)
           
OpenTMSException(java.lang.String id, java.lang.String[] args, int type, java.lang.Object cause)
           
OpenTMSException(java.lang.String id, java.lang.String[] args, int type, java.lang.Object cause, java.lang.Exception ex)
           
OpenTMSException(java.lang.String id, java.lang.String[] args, java.lang.Object cause)
           
OpenTMSException(java.lang.String id, java.lang.String arg, int type)
           
OpenTMSException(java.lang.String id, java.lang.String arg, int type, java.lang.Object cause)
           
OpenTMSException(java.lang.String id, java.lang.String arg, int type, java.lang.Object cause, java.lang.Exception ex)
           
OpenTMSException(java.lang.String id, java.lang.String arg, java.lang.Object cause)
           
OpenTMSException(java.lang.String arg0, java.lang.Throwable arg1)
           
OpenTMSException(java.lang.Throwable arg0)
           
 
Method Summary
 java.lang.String[] getArgs()
          getArgs
 java.lang.Object getEmxCause()
          getEmxCause
 int getErrorCode()
          getErrorCode
 java.lang.Exception getException()
           
 java.lang.String getKey()
          getKey
 int getType()
          getType
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenTMSException

public OpenTMSException()

OpenTMSException

public OpenTMSException(java.lang.String id)
Parameters:
id -

OpenTMSException

public OpenTMSException(java.lang.String id,
                        int type)
Parameters:
id -
type -

OpenTMSException

public OpenTMSException(java.lang.String id,
                        java.lang.Object cause)
Parameters:
id -
cause -

OpenTMSException

public OpenTMSException(java.lang.String id,
                        java.lang.String arg)
Parameters:
id -
arg -

OpenTMSException

public OpenTMSException(java.lang.String id,
                        java.lang.String arg,
                        int type)
Parameters:
id -
arg -
type -

OpenTMSException

public OpenTMSException(java.lang.String id,
                        java.lang.String arg,
                        int type,
                        java.lang.Object cause)
Parameters:
id -
arg -
type -
cause -

OpenTMSException

public OpenTMSException(java.lang.String id,
                        java.lang.String arg,
                        int type,
                        java.lang.Object cause,
                        java.lang.Exception ex)
Parameters:
id -
arg -
type -
cause -
ex -

OpenTMSException

public OpenTMSException(java.lang.String id,
                        java.lang.String arg,
                        java.lang.Object cause)
Parameters:
id -
arg -
cause -

OpenTMSException

public OpenTMSException(java.lang.String id,
                        java.lang.String[] args)

OpenTMSException

public OpenTMSException(java.lang.String id,
                        java.lang.String[] args,
                        int type)
Parameters:
id -
args -
type -

OpenTMSException

public OpenTMSException(java.lang.String id,
                        java.lang.String[] args,
                        int type,
                        java.lang.Object cause)
Parameters:
id -
args -
type -
cause -

OpenTMSException

public OpenTMSException(java.lang.String id,
                        java.lang.String[] args,
                        int type,
                        java.lang.Object cause,
                        java.lang.Exception ex)
Parameters:
id -
args -
type -
cause -
ex -

OpenTMSException

public OpenTMSException(java.lang.String id,
                        java.lang.String[] args,
                        java.lang.Object cause)
Parameters:
id -
args -
cause -

OpenTMSException

public OpenTMSException(java.lang.String arg0,
                        java.lang.Throwable arg1)
Parameters:
arg0 -
arg1 -

OpenTMSException

public OpenTMSException(java.lang.Throwable arg0)
Parameters:
arg0 -
Method Detail

getArgs

public java.lang.String[] getArgs()
getArgs

Returns:
the arguments (Strings) supplied for an exception

getEmxCause

public java.lang.Object getEmxCause()
getEmxCause

Returns:
the cause of an exception

getErrorCode

public int getErrorCode()
getErrorCode

Returns:
the error code of an exception

getException

public java.lang.Exception getException()
Returns:
the exception

getKey

public java.lang.String getKey()
getKey

Returns:
the message associated with the exception

getType

public int getType()
getType

Returns:
the type of an exception