Class CredHubException

All Implemented Interfaces:
Serializable

public class CredHubException extends HttpStatusCodeException
Exception class to capture errors specific to CredHub communication.
Author:
Scott Frederick
See Also:
  • Constructor Details

    • CredHubException

      public CredHubException(HttpStatusCodeException e)
      Create a new exception with the provided root cause.
      Parameters:
      e - an HttpStatusCodeException caught while attempting to communicate with CredHub
    • CredHubException

      public CredHubException(HttpStatusCode statusCode)
      Create a new exception with the provided error status code.
      Parameters:
      statusCode - an HttpStatusCode indicating an error while attempting to communicate with CredHub
    • CredHubException

      public CredHubException(HttpStatusCode statusCode, HttpHeaders headers, byte[] responseBody)
      Create a new exception with the provided error status code, headers, and response body.
      Parameters:
      statusCode - an HttpStatusCode indicating an error
      headers - the response headers
      responseBody - the response body as a byte array