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
ODHttpStatus
status (int
) - The code of the Odilon
ErrorCode
(int
) - Odilon error message (
String
)
- Author:
- atolomei@novamens.com (Alejandro Tolomei)
- See Also:
-
Constructor Summary
ConstructorDescriptionODClientException
(int httpStatus, int odilonErrorCode, String odilonErrorMessage) ODClientException
(int odilonErrorCode, String odilonErrorMessage) -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
setContext
(Map<String, String> s) void
setErrorCode
(int odilonErrorCode) void
setHttpStatus
(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:
getMessage
in 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
-