Class MethodNotAllowedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
com.djrapitops.plan.delivery.web.resolver.exception.MethodNotAllowedException
- All Implemented Interfaces:
Serializable
Throw this exception when a Resolver gets invalid
Request.getMethod()
.
Plan will construct error json automatically.
Note that you might need to handle the error page, which is json: {"status": 405, "error": "message"}
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MethodNotAllowedException
Default constructor.- Parameters:
allowedMethods
- POST, GET, etc. - avoid including any input incoming in the request to prevent XSS.
-
-
Method Details
-
getAllowedMethods
-