public final class InvalidResponseException extends VaultConnectorException
| Constructor and Description |
|---|
InvalidResponseException()
Constructs a new empty exception.
|
InvalidResponseException(String message)
Constructs a new exception with the specified detail message.
|
InvalidResponseException(String message,
Integer statusCode)
Constructs a new exception with the specified detail message and status code.
|
InvalidResponseException(String message,
Integer statusCode,
String response)
Constructs a new exception with the specified detail message, cause and status code.
|
InvalidResponseException(String message,
Integer statusCode,
String response,
Throwable cause)
Constructs a new exception with the specified detail message, cause and status code.
|
InvalidResponseException(String message,
Integer statusCode,
Throwable cause)
Constructs a new exception with the specified detail message, cause and status code.
|
InvalidResponseException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
InvalidResponseException(Throwable cause)
Constructs a new exception with the specified cause.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getResponse()
Retrieve the response text.
|
Integer |
getStatusCode()
Retrieve the HTTP status code.
|
InvalidResponseException |
withResponse(String response)
Deprecated.
use constructor with response argument instead
|
InvalidResponseException |
withStatusCode(Integer statusCode)
Deprecated.
as of 0.6.2, use constructor with status code argument instead
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidResponseException()
public InvalidResponseException(String message)
message - the detail messagepublic InvalidResponseException(Throwable cause)
cause - the causepublic InvalidResponseException(String message, Throwable cause)
message - the detail messagecause - the causepublic InvalidResponseException(String message, Integer statusCode)
The HTTP status code can be retrieved by getStatusCode() later.
message - the detail messagestatusCode - status code of the HTTP responsepublic InvalidResponseException(String message, Integer statusCode, Throwable cause)
The HTTP status code can be retrieved by getStatusCode() later.
message - the detail messagestatusCode - status code of the HTTP responsecause - the causepublic InvalidResponseException(String message, Integer statusCode, String response)
The HTTP status code can be retrieved by getStatusCode() later.
message - the detail messagestatusCode - status code of the HTTP responseresponse - HTTP response stringpublic InvalidResponseException(String message, Integer statusCode, String response, Throwable cause)
The HTTP status code can be retrieved by getStatusCode() later.
message - the detail messagestatusCode - status code of the HTTP responseresponse - HTTP response stringcause - the cause@Deprecated public InvalidResponseException withStatusCode(Integer statusCode)
getStatusCode() later.statusCode - the status code@Deprecated public InvalidResponseException withResponse(String response)
getResponse() later.response - response textpublic Integer getStatusCode()
null if none specified.public String getResponse()
null if none specified.Copyright © 2016–2017. All rights reserved.