Module de.stklcode.jvault.connector
Class InvalidResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.stklcode.jvault.connector.exception.VaultConnectorException
de.stklcode.jvault.connector.exception.InvalidResponseException
- All Implemented Interfaces:
- Serializable
Exception thrown when response from vault returned with erroneous status code or payload could not be parsed
 to entity class.
- Since:
- 0.1
- Author:
- Stefan Kalscheuer
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs 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.Constructs a new exception with the specified cause.
- 
Method SummaryModifier and TypeMethodDescriptionRetrieve the response text.Retrieve the HTTP status code.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
InvalidResponseExceptionpublic InvalidResponseException()Constructs a new empty exception.
- 
InvalidResponseExceptionConstructs a new exception with the specified detail message.- Parameters:
- message- The detail message
 
- 
InvalidResponseExceptionConstructs a new exception with the specified cause.- Parameters:
- cause- The cause
 
- 
InvalidResponseExceptionConstructs a new exception with the specified detail message and cause.- Parameters:
- message- The detail message
- cause- The cause
 
- 
InvalidResponseExceptionConstructs a new exception with the specified detail message and status code.The HTTP status code can be retrieved by getStatusCode()later.- Parameters:
- message- The detail message
- statusCode- Status code of the HTTP response
- Since:
- 0.6.2
 
- 
InvalidResponseExceptionConstructs a new exception with the specified detail message, cause and status code.The HTTP status code can be retrieved by getStatusCode()later.- Parameters:
- message- The detail message
- statusCode- Status code of the HTTP response
- cause- The cause
- Since:
- 0.6.2
 
- 
InvalidResponseExceptionConstructs a new exception with the specified detail message, cause and status code.The HTTP status code can be retrieved by getStatusCode()later.- Parameters:
- message- The detail message
- statusCode- Status code of the HTTP response
- response- HTTP response string
- Since:
- 0.6.2
 
- 
InvalidResponseExceptionpublic InvalidResponseException(String message, Integer statusCode, String response, Throwable cause) Constructs a new exception with the specified detail message, cause and status code.The HTTP status code can be retrieved by getStatusCode()later.- Parameters:
- message- The detail message
- statusCode- Status code of the HTTP response
- response- HTTP response string
- cause- The cause
- Since:
- 0.6.2
 
 
- 
- 
Method Details- 
getStatusCodeRetrieve the HTTP status code.- Returns:
- The status code or nullif none specified.
 
- 
getResponseRetrieve the response text.- Returns:
- The response text or nullif none specified.
 
 
-