Package ninja.exceptions
Class RequestNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ninja.exceptions.NinjaException
-
- ninja.exceptions.RequestNotFoundException
-
- All Implemented Interfaces:
Serializable
public class RequestNotFoundException extends NinjaException
A convenience unchecked exception. Allows you to wrap any exception (checked or unchecked) and throw it. Should signal a html error 404 - not found (the client attempts something unknown). 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 RequestNotFoundException()
RequestNotFoundException(String message)
RequestNotFoundException(String message, Throwable cause)
RequestNotFoundException(Throwable cause)
-
Method Summary
-
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
-
-