Package org.imixs.workflow.services.rest
Class RestAPIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.imixs.workflow.services.rest.RestAPIException
- All Implemented Interfaces:
Serializable
RestAPIException signals an error in the communication with the Imixs Rest
API using the Imixs RestClient. The error code is the HTTP responce code.
- Version:
- 2.0
- Author:
- rsoika
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRestAPIException(int aErrorCode, String message) RestAPIException(int aErrorCode, String message, Exception e) RestAPIException(String aErrorContext, int aErrorCode, String message) RestAPIException(String aErrorContext, int aErrorCode, String message, Exception e) -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetErrorCode(int errorCode) voidsetErrorContext(String errorContext) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorContext
-
errorCode
protected int errorCode
-
-
Constructor Details
-
RestAPIException
-
RestAPIException
-
RestAPIException
-
RestAPIException
-
-
Method Details
-
getErrorContext
-
setErrorContext
-
getErrorCode
public int getErrorCode() -
setErrorCode
public void setErrorCode(int errorCode)
-