Class GenieException

    • 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.
      • 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

      • GenieException

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

      • getErrorCode

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