Class ODClientException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.odilon.client.error.ODClientException
All Implemented Interfaces:
Serializable

public class ODClientException extends Exception

Exception thrown by the Odilon client library.
It contains three main parts:

  • The code of the ODHttpStatus status (int)
  • The code of the Odilon ErrorCode (int)
  • Odilon error message (String)
Author:
atolomei@novamens.com (Alejandro Tolomei)
See Also:
  • Constructor Details

    • ODClientException

      public ODClientException(Exception e)
    • ODClientException

      public ODClientException(int odilonErrorCode, String odilonErrorMessage)
    • ODClientException

      public ODClientException(int httpStatus, int odilonErrorCode, String odilonErrorMessage)
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getHttpStatus

      public int getHttpStatus()
    • setHttpStatus

      public void setHttpStatus(int httpStatus)
    • getErrorCode

      public int getErrorCode()
    • setErrorCode

      public void setErrorCode(int odilonErrorCode)
    • setContext

      public void setContext(Map<String,String> s)
    • getContext

      public Map<String,String> getContext()
    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • toJSON

      public String toJSON()