Class GenieException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.netflix.genie.common.exceptions.GenieException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GenieBadRequestException
,GenieNotFoundException
,GeniePreconditionException
,GenieServerException
,GenieServerUnavailableException
,GenieTimeoutException
,GenieUserLimitExceededException
The common exception class that represents a service failure. It includes an
HTTP error code and a human-readable error message.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGenieException
(int errorCode, String msg) Constructor.GenieException
(int errorCode, String msg, 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
-
GenieException
Constructor.- Parameters:
errorCode
- the HTTP status code for this exceptionmsg
- human readable messagecause
- reason for this exception
-
GenieException
Constructor.- Parameters:
errorCode
- the HTTP status code for this exceptionmsg
- human readable message
-
-
Method Details
-
getErrorCode
public int getErrorCode()Return the HTTP status code for this exception.- Returns:
- the HTTP status code
-