Package com.cloudera.cdp
Class CdpHTTPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.cloudera.cdp.CdpClientException
com.cloudera.cdp.CdpHTTPException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CdpServiceException
Class used to report exceptions which have an associated HTTP code.
- See Also:
-
Constructor Summary
ConstructorDescriptionCdpHTTPException
(int httpCode, String message) Constructor.CdpHTTPException
(int httpCode, String message, Throwable cause) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CdpHTTPException
Constructor.- Parameters:
httpCode
- the HTTP codemessage
- the error messagecause
- the cause
-
CdpHTTPException
Constructor.- Parameters:
httpCode
- the HTTP codemessage
- the error message
-
-
Method Details
-
getHttpCode
public int getHttpCode()Gets the HTTP response code.- Returns:
- the HTTP response code
-