Class GenieException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.netflix.genie.common.exceptions.GenieException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
GenieBadRequestException
,GenieNotFoundException
,GeniePreconditionException
,GenieServerException
,GenieServerUnavailableException
,GenieTimeoutException
,GenieUserLimitExceededException
public class GenieException extends java.lang.Exception
The common exception class that represents a service failure. It includes an HTTP error code and a human-readable error message.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenieException(int errorCode, java.lang.String msg)
Constructor.GenieException(int errorCode, java.lang.String msg, java.lang.Throwable cause)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
Return the HTTP status code for this exception.
-
-
-
Constructor Detail
-
GenieException
public GenieException(int errorCode, java.lang.String msg, java.lang.Throwable cause)
Constructor.- Parameters:
errorCode
- the HTTP status code for this exceptionmsg
- human readable messagecause
- reason for this exception
-
GenieException
public GenieException(int errorCode, java.lang.String msg)
Constructor.- Parameters:
errorCode
- the HTTP status code for this exceptionmsg
- human readable message
-
-