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
public class ODClientException extends Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ODClientException(int httpStatus, int odilonErrorCode, String odilonErrorMessage)
ODClientException(int odilonErrorCode, String odilonErrorMessage)
ODClientException(Exception e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getContext()
int
getErrorCode()
int
getHttpStatus()
String
getMessage()
void
setContext(Map<String,String> s)
void
setErrorCode(int odilonErrorCode)
void
setHttpStatus(int httpStatus)
String
toJSON()
String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
getMessage
public String 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)
-
toJSON
public String toJSON()
-
-