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
public class CdpHTTPException extends CdpClientException
Class used to report exceptions which have an associated HTTP code.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CdpHTTPException(int httpCode, String message)
Constructor.CdpHTTPException(int httpCode, String message, Throwable cause)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHttpCode()
Gets the HTTP response code.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CdpHTTPException
public CdpHTTPException(int httpCode, String message, Throwable cause)
Constructor.- Parameters:
httpCode
- the HTTP codemessage
- the error messagecause
- the cause
-
CdpHTTPException
public CdpHTTPException(int httpCode, String message)
Constructor.- Parameters:
httpCode
- the HTTP codemessage
- the error message
-
-