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

public class GenieClientException extends IOException
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 Details

    • GenieClientException

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

      public GenieClientException(String msg)
      Constructor.
      Parameters:
      msg - human readable message
    • GenieClientException

      public GenieClientException(String messasge, Throwable cause)
      Constructor.
      Parameters:
      messasge - human readable message
      cause - cause
  • Method Details

    • getErrorCode

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