Initial commit
This commit is contained in:
commit
efa5624dab
687 changed files with 162710 additions and 0 deletions
20
kirby/src/Exception/BadMethodCallException.php
Normal file
20
kirby/src/Exception/BadMethodCallException.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace Kirby\Exception;
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
*/
|
||||
class BadMethodCallException extends Exception
|
||||
{
|
||||
protected static string $defaultKey = 'invalidMethod';
|
||||
protected static string $defaultFallback = 'The method "{ method }" does not exist';
|
||||
protected static int $defaultHttpCode = 400;
|
||||
protected static array $defaultData = ['method' => null];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue