Class UnauthorizedRequestException

    • Constructor Detail

      • UnauthorizedRequestException

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

      • getMessage

        public String getMessage()
        Getter for Message. The message containing the reason behind the request being unauthorized
        Overrides:
        getMessage in class Throwable
        Returns:
        Returns the String