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 Details

    • responseStatus

      protected org.springframework.http.HttpStatus responseStatus
    • errorDetails

      protected Object errorDetails
  • Constructor Details

    • RestServiceException

      public RestServiceException(org.springframework.http.HttpStatus responseStatus, Object errorDetails)
  • Method Details

    • getResponseStatus

      public org.springframework.http.HttpStatus getResponseStatus()
    • getErrorDetails

      public Object getErrorDetails()