Class GenieClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.netflix.genie.client.exceptions.GenieClientException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GenieClientTooManyRequestsException
An exception class that represents all failures received by the client. It includes an
HTTP error code and a human-readable error message. The HTTP Error code is -1 in case the error is not
from the server.
- Since:
- 3.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGenieClientException
(int errorCode, String msg) Constructor.Constructor.GenieClientException
(String messasge, Throwable cause) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the HTTP status code for this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GenieClientException
Constructor.- Parameters:
errorCode
- the HTTP status code for this exceptionmsg
- human readable message
-
GenieClientException
Constructor.- Parameters:
msg
- human readable message
-
GenieClientException
Constructor.- Parameters:
messasge
- human readable messagecause
- cause
-
-
Method Details
-
getErrorCode
public int getErrorCode()Return the HTTP status code for this exception.- Returns:
- the HTTP status code
-