Class ErrorException

    • Constructor Detail

      • ErrorException

        public ErrorException​(String reason,
                              HttpContext context)
        Initialization constructor.
        Parameters:
        reason - The reason for throwing exception
        context - The http context of the API exception
    • Method Detail

      • getCode

        public int getCode()
        Getter for Code.
        Returns:
        Returns the int
      • getMessage

        public String getMessage()
        Getter for Message.
        Overrides:
        getMessage in class Throwable
        Returns:
        Returns the String