index-main/kirby/src/Exception/BadMethodCallException.php
2025-10-03 07:46:23 +02:00

20 lines
593 B
PHP

<?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];
}