Class GenieClientException

  • All Implemented Interfaces:
    java.io.Serializable

    public class GenieClientException
    extends java.io.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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GenieClientException

        public GenieClientException​(int errorCode,
                                    java.lang.String msg)
        Constructor.
        Parameters:
        errorCode - the HTTP status code for this exception
        msg - 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 message
        cause - cause
    • Method Detail

      • getErrorCode

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