Class ForbiddenRequestException

    • Constructor Detail

      • ForbiddenRequestException

        public ForbiddenRequestException​(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 forbidden
        Overrides:
        getMessage in class Throwable
        Returns:
        Returns the String