Package com.ibatis.sqlmap.engine.scope
Class ErrorContext
java.lang.Object
com.ibatis.sqlmap.engine.scope.ErrorContext
An error context to help us create meaningful error messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the activity that was happening when the error happened.getCause()Getter for the cause of the error.Getter for more information about the error.Getter for the object ID where the problem happened.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.voidSetter 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.toString()
-
Constructor Details
-
ErrorContext
public ErrorContext()
-
-
Method Details
-
getResource
Getter for the resource causing the problem.- Returns:
- - the resource
-
setResource
Setter for the resource causing the problem.- Parameters:
resource- - the resource
-
getActivity
Getter for the activity that was happening when the error happened.- Returns:
- - the activity
-
setActivity
Getter for the activity that was happening when the error happened.- Parameters:
activity- - the activity
-
getObjectId
Getter for the object ID where the problem happened.- Returns:
- - the object id
-
setObjectId
Setter for the object ID where the problem happened.- Parameters:
objectId- - the object id
-
getMoreInfo
Getter for more information about the error.- Returns:
- - more information
-
setMoreInfo
Setter for more information about the error.- Parameters:
moreInfo- - more information
-
getCause
Getter for the cause of the error.- Returns:
- - the cause
-
setCause
Setter for the cause of the error.- Parameters:
cause- - the cause
-
toString
-
reset
public void reset()Clear the error context.
-