Package com.jsgalactic.axiom.error
Class NotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jsgalactic.axiom.error.AxiomException
com.jsgalactic.axiom.error.NotFoundException
- All Implemented Interfaces:
Serializable
A resource that does not exist (404). The runtime also uses this status for unmatched routes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the exception with codenot_found.NotFoundException(String code) Creates the exception with a specific safe code. -
Method Summary
Methods inherited from class com.jsgalactic.axiom.error.AxiomException
code, headers, status, violationsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NotFoundException
public NotFoundException()Creates the exception with codenot_found. -
NotFoundException
Creates the exception with a specific safe code.- Parameters:
code- machine-readable code
-