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, toString
public 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–2018. All rights reserved.