Package com.jsgalactic.axiom.error
Class MethodNotAllowedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jsgalactic.axiom.error.AxiomException
com.jsgalactic.axiom.error.MethodNotAllowedException
- All Implemented Interfaces:
Serializable
A method the target resource does not support (405). The response's
Allow header lists
the supplied methods in sorted order. The runtime answers unmatched methods on registered routes
with the same status and header.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMethodNotAllowedException(Set<String> allowed) Creates the exception with codemethod_not_allowed. -
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
-
MethodNotAllowedException
Creates the exception with codemethod_not_allowed.- Parameters:
allowed- supported method tokens; at least one- Throws:
IllegalArgumentException- if the set is empty or a method is not an HTTP token of at most 32 characters
-