public class RestServiceException
extends org.springframework.web.client.RestClientException
errorDetails
holds the details
of the error, and can be anything the service wants to return.Modifier and Type | Field and Description |
---|---|
protected Object |
errorDetails |
protected org.springframework.http.HttpStatus |
responseStatus |
Constructor and Description |
---|
RestServiceException(org.springframework.http.HttpStatus responseStatus,
Object errorDetails) |
Modifier and Type | Method and Description |
---|---|
Object |
getErrorDetails() |
org.springframework.http.HttpStatus |
getResponseStatus() |
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected org.springframework.http.HttpStatus responseStatus
protected Object errorDetails
public RestServiceException(org.springframework.http.HttpStatus responseStatus, Object errorDetails)
public org.springframework.http.HttpStatus getResponseStatus()
public Object getErrorDetails()
Copyright © 2015 CrafterCMS. All Rights Reserved.