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
ConstructorsConstructorDescriptionCredHubException(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, setBodyConvertFunctionMethods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods 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- anHttpStatusCodeExceptioncaught while attempting to communicate with CredHub
-
CredHubException
Create a new exception with the provided error status code.- Parameters:
statusCode- anHttpStatusCodeindicating an error while attempting to communicate with CredHub
-