gov.nih.nci.caarray.common.exception
Class GeneralException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by gov.nih.nci.caarray.common.exception.GeneralException
All Implemented Interfaces:
java.io.Serializable

public final class GeneralException
extends java.lang.Exception

This exception is used when a generic problem is encountered.

See Also:
Serialized Form

Constructor Summary
GeneralException(java.lang.String reason)
          Creates a new instance of GeneralException with a reason.
GeneralException(java.lang.String message, java.lang.Throwable cause)
           
GeneralException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.String getErrorCode()
           
 void setErrorCode(java.lang.String string)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneralException

public GeneralException(java.lang.String reason)
Creates a new instance of GeneralException with a reason. The provided reason string will be available via the Exception.getMessage() method.

Parameters:
reason - - The reason this exception was thrown.

GeneralException

public GeneralException(java.lang.String message,
                        java.lang.Throwable cause)
Parameters:
message - - Message about the error that caused this exception.
cause - - Throwable that caused this exception.

GeneralException

public GeneralException(java.lang.Throwable cause)
Parameters:
cause - - Throwable that caused this exception.
Method Detail

getErrorCode

public java.lang.String getErrorCode()
Returns:

setErrorCode

public void setErrorCode(java.lang.String string)
Parameters:
string -