Initial commit
This commit is contained in:
commit
1ff19bf38f
830 changed files with 159212 additions and 0 deletions
21
kirby/src/Exception/BadMethodCallException.php
Normal file
21
kirby/src/Exception/BadMethodCallException.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace Kirby\Exception;
|
||||
|
||||
/**
|
||||
* BadMethodCallException
|
||||
* Thrown when a method was called that does not exist
|
||||
*
|
||||
* @package Kirby Exception
|
||||
* @author Nico Hoffmann <nico@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier GmbH
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
*/
|
||||
class BadMethodCallException extends Exception
|
||||
{
|
||||
protected static $defaultKey = 'invalidMethod';
|
||||
protected static $defaultFallback = 'The method "{ method }" does not exist';
|
||||
protected static $defaultHttpCode = 400;
|
||||
protected static $defaultData = ['method' => null];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue