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
public class RestAPIException extends Exception
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:
RestClient
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
errorCode
protected String
errorContext
-
Constructor Summary
Constructors Constructor Description RestAPIException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
String
getErrorContext()
void
setErrorCode(int errorCode)
void
setErrorContext(String errorContext)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-