com.ibatis.sqlmap.engine.scope

Class ErrorContext

public class ErrorContext extends Object

An error context to help us create meaningful error messages
Method Summary
StringgetActivity()
Getter for the activity that was happening when the error happened
ThrowablegetCause()
Getter for the cause of the error
StringgetMoreInfo()
Getter for more information about the error
StringgetObjectId()
Getter for the object ID where the problem happened
StringgetResource()
Getter for the resource causing the problem
voidreset()
Clear the error context
voidsetActivity(String activity)
Getter for the activity that was happening when the error happened
voidsetCause(Throwable cause)
Setter for the cause of the error
voidsetMoreInfo(String moreInfo)
Setter for more information about the error
voidsetObjectId(String objectId)
Setter for the object ID where the problem happened
voidsetResource(String resource)
Setter for the resource causing the problem
StringtoString()

Method Detail

getActivity

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

Returns: - the activity

getCause

public Throwable getCause()
Getter for the cause of the error

Returns: - the cause

getMoreInfo

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

Returns: - more information

getObjectId

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

Returns: - the object id

getResource

public String getResource()
Getter for the resource causing the problem

Returns: - the resource

reset

public void reset()
Clear the error context

setActivity

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

Parameters: activity - the activity

setCause

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

Parameters: cause - the cause

setMoreInfo

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

Parameters: moreInfo - more information

setObjectId

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

Parameters: objectId - the object id

setResource

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

Parameters: resource - the resource

toString

public String toString()
Copyright © 2011. All Rights Reserved.