public class UnsuccessfulResponseException extends HttpStatusCodeException
ResponseEntity with a not successful status code.| Constructor and Description |
|---|
UnsuccessfulResponseException(ResponseEntity<?> response)
Constructor
|
UnsuccessfulResponseException(ResponseEntity<?> response,
String message)
Constructor with error message
|
| Modifier and Type | Method and Description |
|---|---|
ResponseEntity<?> |
getResponse()
Get the response entity associated with to exception.
|
getStatus, getStatusCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnsuccessfulResponseException(ResponseEntity<?> response)
response - Response entity associated to this exceptionpublic UnsuccessfulResponseException(ResponseEntity<?> response, String message)
response - Response entity associated to this exceptionmessage - Error messagepublic ResponseEntity<?> getResponse()
Copyright © 2019 The Holon Platform. All rights reserved.