MethodNotAllowedException

Extends RuntimeException

Exception 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

arrayThe allowed methods for the route.

message

nullThe Exception message to throw.

code

intThe Exception code.

previous

\ExceptionThe 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[]