Class ForbiddenRequestException

  • All Implemented Interfaces:
    Serializable

    public class ForbiddenRequestException
    extends NinjaException
    A convenience unchecked exception. Allows you to wrap any exception (checked or unchecked) and throw it. Should signal a html error 403 - forbidden (the client attempts something forbidden). Useful inside controllers or filters for instance. Ninja is supposed to pick it up and render an appropriate error page.
    See Also:
    Serialized Form
    • Constructor Detail

      • ForbiddenRequestException

        public ForbiddenRequestException()
      • ForbiddenRequestException

        public ForbiddenRequestException​(String message)
      • ForbiddenRequestException

        public ForbiddenRequestException​(String message,
                                         Throwable cause)
      • ForbiddenRequestException

        public ForbiddenRequestException​(Throwable cause)