Class ErrorContext

java.lang.Object
com.ibatis.sqlmap.engine.scope.ErrorContext

public class ErrorContext extends Object
An error context to help us create meaningful error messages.
  • Constructor Details

    • ErrorContext

      public ErrorContext()
  • Method Details

    • getResource

      public String getResource()
      Getter for the resource causing the problem.
      Returns:
      - the resource
    • setResource

      public void setResource(String resource)
      Setter for the resource causing the problem.
      Parameters:
      resource - - the resource
    • getActivity

      public String getActivity()
      Getter for the activity that was happening when the error happened.
      Returns:
      - the activity
    • setActivity

      public void setActivity(String activity)
      Getter for the activity that was happening when the error happened.
      Parameters:
      activity - - the activity
    • getObjectId

      public String getObjectId()
      Getter for the object ID where the problem happened.
      Returns:
      - the object id
    • setObjectId

      public void setObjectId(String objectId)
      Setter for the object ID where the problem happened.
      Parameters:
      objectId - - the object id
    • getMoreInfo

      public String getMoreInfo()
      Getter for more information about the error.
      Returns:
      - more information
    • setMoreInfo

      public void setMoreInfo(String moreInfo)
      Setter for more information about the error.
      Parameters:
      moreInfo - - more information
    • getCause

      public Throwable getCause()
      Getter for the cause of the error.
      Returns:
      - the cause
    • setCause

      public void setCause(Throwable cause)
      Setter for the cause of the error.
      Parameters:
      cause - - the cause
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • reset

      public void reset()
      Clear the error context.