gov.nih.nci.caarray.common.exception
Class GeneralException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
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 |
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.
getErrorCode
public java.lang.String getErrorCode()
- Returns:
setErrorCode
public void setErrorCode(java.lang.String string)
- Parameters:
string
-