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

public class GenieException extends Exception
The common exception class that represents a service failure. It includes an HTTP error code and a human-readable error message.
See Also:
  • Constructor Details

    • GenieException

      public GenieException(int errorCode, String msg, Throwable cause)
      Constructor.
      Parameters:
      errorCode - the HTTP status code for this exception
      msg - human readable message
      cause - reason for this exception
    • GenieException

      public GenieException(int errorCode, String msg)
      Constructor.
      Parameters:
      errorCode - the HTTP status code for this exception
      msg - human readable message
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Return the HTTP status code for this exception.
      Returns:
      the HTTP status code