Package ninja.exceptions
Class RenderingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ninja.exceptions.NinjaException
-
- ninja.exceptions.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 Summary
Constructors Constructor Description RenderingException()
RenderingException(String message)
RenderingException(String message, Throwable cause)
RenderingException(String message, Throwable cause, Result result, String sourcePath, int lineNumber)
RenderingException(String message, Throwable cause, Result result, String title, String sourcePath, int lineNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLineNumber()
Result
getResult()
String
getSourcePath()
String
getTitle()
-
Methods inherited from class ninja.exceptions.NinjaException
getHttpStatus
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-