Class 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:
    Serialized Form
    • Field Detail

      • responseStatus

        protected org.springframework.http.HttpStatus responseStatus
      • errorDetails

        protected Object errorDetails
    • Constructor Detail

      • RestServiceException

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

      • getResponseStatus

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

        public Object getErrorDetails()