com.ibatis.sqlmap.engine.scope
Class ErrorContext

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.scope.ErrorContext

public class ErrorContext
extends java.lang.Object

An error context to help us create meaningful error messages


Constructor Summary
ErrorContext()
           
 
Method Summary
 java.lang.String getActivity()
          Getter for the activity that was happening when the error happened
 java.lang.Throwable getCause()
          Getter for the cause of the error
 java.lang.String getMoreInfo()
          Getter for more information about the error
 java.lang.String getObjectId()
          Getter for the object ID where the problem happened
 java.lang.String getResource()
          Getter for the resource causing the problem
 void reset()
          Clear the error context
 void setActivity(java.lang.String activity)
          Getter for the activity that was happening when the error happened
 void setCause(java.lang.Throwable cause)
          Setter for the cause of the error
 void setMoreInfo(java.lang.String moreInfo)
          Setter for more information about the error
 void setObjectId(java.lang.String objectId)
          Setter for the object ID where the problem happened
 void setResource(java.lang.String resource)
          Setter for the resource causing the problem
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorContext

public ErrorContext()
Method Detail

getResource

public java.lang.String getResource()
Getter for the resource causing the problem

Returns:
- the resource

setResource

public void setResource(java.lang.String resource)
Setter for the resource causing the problem

Parameters:
resource - - the resource

getActivity

public java.lang.String getActivity()
Getter for the activity that was happening when the error happened

Returns:
- the activity

setActivity

public void setActivity(java.lang.String activity)
Getter for the activity that was happening when the error happened

Parameters:
activity - - the activity

getObjectId

public java.lang.String getObjectId()
Getter for the object ID where the problem happened

Returns:
- the object id

setObjectId

public void setObjectId(java.lang.String objectId)
Setter for the object ID where the problem happened

Parameters:
objectId - - the object id

getMoreInfo

public java.lang.String getMoreInfo()
Getter for more information about the error

Returns:
- more information

setMoreInfo

public void setMoreInfo(java.lang.String moreInfo)
Setter for more information about the error

Parameters:
moreInfo - - more information

getCause

public java.lang.Throwable getCause()
Getter for the cause of the error

Returns:
- the cause

setCause

public void setCause(java.lang.Throwable cause)
Setter for the cause of the error

Parameters:
cause - - the cause

toString

public java.lang.String toString()

reset

public void reset()
Clear the error context