Package io.odilon.client.error
Class ODClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.odilon.client.error.ODClientException
- All Implemented Interfaces:
Serializable
Exception thrown by the Odilon client library.
It contains three main parts:
- The code of the
ODHttpStatusstatus (int) - The code of the Odilon
ErrorCode(int) - Odilon error message (
String)
- Author:
- atolomei@novamens.com (Alejandro Tolomei)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionODClientException(int httpStatus, int odilonErrorCode, String odilonErrorMessage) ODClientException(int odilonErrorCode, String odilonErrorMessage) -
Method Summary
Modifier and TypeMethodDescriptionintintvoidsetContext(Map<String, String> s) voidsetErrorCode(int odilonErrorCode) voidsetHttpStatus(int httpStatus) toJSON()toString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ODClientException
-
ODClientException
-
ODClientException
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getHttpStatus
public int getHttpStatus() -
setHttpStatus
public void setHttpStatus(int httpStatus) -
getErrorCode
public int getErrorCode() -
setErrorCode
public void setErrorCode(int odilonErrorCode) -
setContext
-
getContext
-
toString
-
toJSON
-