public class CredHubException extends HttpStatusCodeException
Constructor and Description |
---|
CredHubException(HttpStatus statusCode)
Create a new exception with the provided error status code.
|
CredHubException(HttpStatusCodeException e)
Create a new exception with the provided root cause.
|
getStatusCode
getRawStatusCode, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseBodyAsString, getResponseHeaders, getStatusText
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CredHubException(HttpStatusCodeException e)
e
- an HttpStatusCodeException
caught while attempting to communicate
with CredHubpublic CredHubException(HttpStatus statusCode)
statusCode
- an HttpStatus
indicating an error while attempting to
communicate with CredHub