14 lines
435 B
PHP
14 lines
435 B
PHP
<?php
|
|
namespace ProVM\Common\Exception\Request;
|
|
|
|
use Exception;
|
|
|
|
class MissingArgument extends Exception
|
|
{
|
|
public function __construct(string $argument_name, string $argument_type, string $argument_description, ?Throwable $previous = null)
|
|
{
|
|
$message = "Missing argument {$argument_name} [{$argument_type}] | {$argument_description}";
|
|
$code = 10;
|
|
parent::__construct($message, $code, $previous);
|
|
}
|
|
} |