All Implemented Interfaces:
Serializable

public class RESTServerException extends RESTClientCheckedExceptionBase
The RESTServerException is thrown by the REST client connector when it is not able to communicate with the REST server.
See Also:
  • Constructor Details

    • RESTServerException

      public RESTServerException(int httpCode, String className, String actionDescription, String errorMessage, String systemAction, String userAction)
      This is the typical constructor used for creating an exception.
      Parameters:
      httpCode - http response code to use if this exception flows over a rest call
      className - name of class reporting error
      actionDescription - description of function it was performing when error detected
      errorMessage - description of error
      systemAction - actions of the system as a result of the error
      userAction - instructions for correcting the error
    • RESTServerException

      public RESTServerException(int httpCode, String className, String actionDescription, String errorMessage, String systemAction, String userAction, Exception caughtError)
      This is the constructor used for creating an exception that resulted from a previous error.
      Parameters:
      httpCode - http response code to use if this exception flows over a rest call
      className - name of class reporting error
      actionDescription - description of function it was performing when error detected
      errorMessage - description of error
      systemAction - actions of the system as a result of the error
      userAction - instructions for correcting the error
      caughtError - the error that resulted in this exception.
  • Method Details

    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class Throwable
      Returns:
      string of property names and values for this enum