com.interfaceware.chameleon
Class ChameleonException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.interfaceware.chameleon.ChameleonException
All Implemented Interfaces:
java.io.Serializable

public class ChameleonException
extends java.lang.Exception

This class handles Chameleon exceptions. This is the standard exception object thrown by methods in the classes in this package.

See Also:
Serialized Form

Constructor Summary
ChameleonException(long Handle)
          Construct an exception from a handle.
ChameleonException(java.lang.String Message)
          Construct an exception from a String.
 
Method Summary
 int countOfParameter()
          Get the number of parameters.
protected  void finalize()
           
 java.lang.String getMessage()
          Return the exception message.
 java.lang.String getParameter(java.lang.String Key)
          Get the value of an exception parameter.
 java.lang.String getParameterKey(int Index)
          Get the parameter key by index.
 
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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChameleonException

public ChameleonException(long Handle)
                   throws ChameleonException
Construct an exception from a handle. This is used in the internal implementation of Chameleon and should not be called directly.

Throws:
ChameleonException

ChameleonException

public ChameleonException(java.lang.String Message)
                   throws ChameleonException
Construct an exception from a String. This is used in the internal implementation of Chameleon and should not be called directly.

Throws:
ChameleonException
Method Detail

finalize

protected void finalize()
                 throws ChameleonException
Overrides:
finalize in class java.lang.Object
Throws:
ChameleonException

getMessage

public java.lang.String getMessage()
Return the exception message.

Overrides:
getMessage in class java.lang.Throwable

getParameter

public java.lang.String getParameter(java.lang.String Key)
Get the value of an exception parameter. This returns an empty String if no such parameter is attached to the provided key. In combination with countOfParameter and getParameterKey this can be used to enumerate all exception parameters.


countOfParameter

public int countOfParameter()
Get the number of parameters. In combination with getParameterKey and getParameter this can be used to enumerate all exception parameters.


getParameterKey

public java.lang.String getParameterKey(int Index)
Get the parameter key by index. In combination with countOfParameter and getParameter this can be used to enumerate all exception parameters.