MethodNotAllowedException

Extends RuntimeException

Exception defining a method not allowed error.

since

2.0.0

package

Joomla Framework

Methods

__construct

Constructor.

__construct(mixed||string|int allowedMethods, string message = null, int code = 405, \Exception previous = null) : 

Arguments

allowedMethods

array<string|int, mixed>The allowed methods for the route.

message

string|nullThe Exception message to throw.

code

int|nullThe Exception code.

previous

Exception|nullThe previous throwable used for the exception chaining.

Response

mixed

getAllowedMethods

Gets the allowed HTTP methods.

getAllowedMethods() : mixed||string|int
since

2.0.0

Response

array<string|int, mixed>

Properties

allowedMethods

Allowed methods for the given route

since

2.0.0

Type(s)

array<string|int, string>