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, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected 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 © 2018 CrafterCMS. All rights reserved.