MethodNotAllowedHttpException class final
A 405: the route exists, but not for this method.
- Inheritance
-
- Object
- DaravelException
- HttpException
- MethodNotAllowedHttpException
Constructors
-
MethodNotAllowedHttpException(List<
String> allowedMethods, String message) -
A 405 listing the
allowedMethodsin itsAllowheader.
Properties
-
allowedMethods
→ List<
String> -
Methods that are supported for the requested path.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Extra headers to send with the rendered response.
finalinherited
- message → String
-
Human readable description of the failure.
finalinherited
- prettyJson → bool
-
Whether the default renderer writes the body pretty-printed, as
Laravel's
Handler::prepareJsonResponsedoes for every HTTP error (JSON_PRETTY_PRINT).AuthenticationExceptionoverrides it: Laravel answers that one with a plainresponse()->json.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int
-
HTTP status code.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited