Overview
  • Namespace
  • Class

Namespaces

  • Slim
    • Exception
    • Handlers
      • Strategies
    • Http
    • Interfaces
      • Http

Exceptions

  • ContainerException
  • ContainerValueNotFoundException
  • InvalidMethodException
  • MethodNotAllowedException
  • NotFoundException
  • SlimException

Class MethodNotAllowedException

Stop Exception

This Exception is thrown when the Slim application needs to abort processing and return control flow to the outer PHP script.

Exception implements Throwable
Extended by Slim\Exception\SlimException
Extended by Slim\Exception\MethodNotAllowedException
Namespace: Slim\Exception
Located at Exception/MethodNotAllowedException.php

Methods summary

public
# __construct( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, array $allowedMethods )

Create new exception

Create new exception

Parameters

$request
$response
$allowedMethods

Overrides

Slim\Exception\SlimException::__construct
public string[]
# getAllowedMethods( )

Get allowed methods

Get allowed methods

Returns

string[]

Methods inherited from Slim\Exception\SlimException

getRequest(), getResponse()

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Properties summary

protected string[] $allowedMethods

HTTP methods allowed

HTTP methods allowed

#

Properties inherited from Slim\Exception\SlimException

$request, $response

Properties inherited from Exception

$code, $file, $line, $message

API documentation generated by ApiGen