com.rshtech.exception
Class ErrorInformation

java.lang.Object
  extended by com.rshtech.exception.ErrorInformation
All Implemented Interfaces:
java.io.Serializable

public class ErrorInformation
extends java.lang.Object
implements java.io.Serializable

Contains the error/exception information used in the ApplicationException and SystemException classes.

Version:
$Revision: 3137 $
Author:
$Author: kostya $
See Also:
Serialized Form

Constructor Summary
ErrorInformation()
           
ErrorInformation(ErrorCode codeVal, java.lang.String detailsVal, java.lang.Throwable rootCauseVal)
           
 
Method Summary
 ErrorCode getCode()
           
 java.lang.String getDetails()
           
 java.lang.String getErrorMessage()
           
 java.lang.Throwable getRootCause()
           
 void setCode(ErrorCode code)
           
 void setDetails(java.lang.String details)
           
 void setRootCause(java.lang.Throwable rootCause)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorInformation

public ErrorInformation()

ErrorInformation

public ErrorInformation(ErrorCode codeVal,
                        java.lang.String detailsVal,
                        java.lang.Throwable rootCauseVal)
Method Detail

getCode

public ErrorCode getCode()
Returns:
Returns the code.

setCode

public void setCode(ErrorCode code)
Parameters:
code - The code to set.

getErrorMessage

public java.lang.String getErrorMessage()

getDetails

public java.lang.String getDetails()
Returns:
Returns the details.

setDetails

public void setDetails(java.lang.String details)
Parameters:
details - The details to set.

getRootCause

public java.lang.Throwable getRootCause()
Returns:
Returns the rootCause.

setRootCause

public void setRootCause(java.lang.Throwable rootCause)
Parameters:
rootCause - The rootCause to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object