xiaowang/kirby/src/Exception/BadMethodCallException.php

22 lines
607 B
PHP
Raw Normal View History

2021-10-29 18:05:46 +02:00
<?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
2022-03-22 15:39:39 +01:00
* @copyright Bastian Allgeier
2021-10-29 18:05:46 +02:00
* @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];
}