testphase
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Phramework
    • Exceptions
    • Testphase
      • Exceptions
    • Validate

Exceptions

  • DatabaseException
  • ForbiddenException
  • IncorrectParametersException
  • MethodNotAllowedException
  • MissingParametersException
  • NotFoundException
  • NotImplementedException
  • PermissionException
  • RequestException
  • ServerException
  • UnauthorizedException

Class MethodNotAllowedException

MethodNotAllowedException Used to throw an \Exception, when this method is not allowed to apply to this resource, or the current status of the resource.

Exception implements Throwable
Extended by Phramework\Exceptions\MethodNotAllowedException
Namespace: Phramework\Exceptions
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Located at MethodNotAllowedException.php

Methods summary

public
# __construct( array $message, array $allowedMethods = [], integer $code = 405 )

Parameters

$message
\Exception message
$allowedMethods
Allowed methods, should be returned in allow header.
$code
Error code, Optional default 405

Overrides

Exception::__construct
public
# getAllowedMethods( )

Methods inherited from Exception

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

Properties summary

Properties inherited from Exception

$code, $file, $line, $message

testphase API documentation generated by ApiGen