Class BadRequestException

  • All Implemented Interfaces:
    Serializable

    public class BadRequestException
    extends NinjaException
    A convenience unchecked exception. Allows you to wrap any exception (checked or unchecked) and throw it. Should signal a html error 400 - bad request (the client sent something strange). 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

      • BadRequestException

        public BadRequestException()
      • BadRequestException

        public BadRequestException​(String message)
      • BadRequestException

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

        public BadRequestException​(Throwable cause)