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
-
Constructor Summary
ConstructorDescriptionRestServiceException
(org.springframework.http.HttpStatus responseStatus, Object errorDetails) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpStatus
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
responseStatus
protected org.springframework.http.HttpStatus responseStatus -
errorDetails
-
-
Constructor Details
-
RestServiceException
public RestServiceException(org.springframework.http.HttpStatus responseStatus, Object errorDetails)
-
-
Method Details
-
getResponseStatus
public org.springframework.http.HttpStatus getResponseStatus() -
getErrorDetails
-