Package org.craftercms.commons.rest
Class RestServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.client.RestClientException
org.craftercms.commons.rest.RestServiceException
- All Implemented Interfaces:
Serializable
public class RestServiceException
extends org.springframework.web.client.RestClientException
Exception thrown when an error is received from a REST service. The
errorDetails
holds the details
of the error, and can be anything the service wants to return.- Author:
- avasquez
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object
protected org.springframework.http.HttpStatusCode
-
Constructor Summary
ConstructorsConstructorDescriptionRestServiceException
(org.springframework.http.HttpStatusCode responseStatus, Object errorDetails) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpStatusCode
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
responseStatus
protected org.springframework.http.HttpStatusCode responseStatus -
errorDetails
-
-
Constructor Details
-
RestServiceException
public RestServiceException(org.springframework.http.HttpStatusCode responseStatus, Object errorDetails)
-
-
Method Details
-
getResponseStatus
public org.springframework.http.HttpStatusCode getResponseStatus() -
getErrorDetails
-