Files
emails/api/common/Exception/Request/MissingArgument.php

14 lines
435 B
PHP
Raw Normal View History

2022-11-28 22:56:21 -03:00
<?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);
}
}