Package org.springframework.credhub.core
Class CredHubException
- All Implemented Interfaces:
Serializable
Exception class to capture errors specific to CredHub communication.
- Author:
- Scott Frederick
- See Also:
-
Constructor Summary
ConstructorDescriptionCredHubException
(HttpStatusCode statusCode) Create a new exception with the provided error status code.Create a new exception with the provided root cause. -
Method Summary
Methods inherited from class org.springframework.web.client.RestClientResponseException
getRawStatusCode, getResponseBodyAs, getResponseBodyAs, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseBodyAsString, getResponseHeaders, getStatusCode, getStatusText, setBodyConvertFunction
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CredHubException
Create a new exception with the provided root cause.- Parameters:
e
- anHttpStatusCodeException
caught while attempting to communicate with CredHub
-
CredHubException
Create a new exception with the provided error status code.- Parameters:
statusCode
- anHttpStatusCode
indicating an error while attempting to communicate with CredHub
-