Class GenieClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.netflix.genie.client.exceptions.GenieClientException
-
- All Implemented Interfaces:
java.io.Serializable
public class GenieClientException extends java.io.IOExceptionAn 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenieClientException(int errorCode, java.lang.String msg)Constructor.GenieClientException(java.lang.String msg)Constructor.GenieClientException(java.lang.String messasge, java.lang.Throwable cause)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Return the HTTP status code for this exception.
-
-
-
Constructor Detail
-
GenieClientException
public GenieClientException(int errorCode, java.lang.String msg)Constructor.- Parameters:
errorCode- the HTTP status code for this exceptionmsg- human readable message
-
GenieClientException
public GenieClientException(java.lang.String msg)
Constructor.- Parameters:
msg- human readable message
-
GenieClientException
public GenieClientException(java.lang.String messasge, java.lang.Throwable cause)Constructor.- Parameters:
messasge- human readable messagecause- cause
-
-