MethodNotAllowedException
Extends RuntimeExceptionException defining a method not allowed error.
since |
2.0.0 |
---|---|
package |
Joomla Framework |
Methods
__construct
Constructor.
__construct(array allowedMethods, null message = null, int code = 405, \Exception previous = null) : mixed
Arguments
- allowedMethods
array
The allowed methods for the route.- message
null
The Exception message to throw.- code
int
The Exception code.- previous
\Exception
The previous throwable used for the exception chaining.
Response
mixed
getAllowedMethods
Gets the allowed HTTP methods.
getAllowedMethods() : array
since |
2.0.0 |
---|
Response
array
Properties
allowedMethods
Allowed methods for the given route
since |
2.0.0 |
---|
Type(s)
string[]