Class RenderingException

  • All Implemented Interfaces:
    Serializable

    public class RenderingException
    extends NinjaException
    A convenience unchecked exception for "rendering" exceptions. Allows you to wrap any exception (checked or unchecked) and throw it along with info about what... 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

      • RenderingException

        public RenderingException()
      • RenderingException

        public RenderingException​(String message)
      • RenderingException

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

        public RenderingException​(String message,
                                  Throwable cause,
                                  Result result,
                                  String sourcePath,
                                  int lineNumber)
    • Method Detail

      • getTitle

        public String getTitle()
      • getResult

        public Result getResult()
      • getSourcePath

        public String getSourcePath()
      • getLineNumber

        public int getLineNumber()