Full implemantation
This commit is contained in:
14
api/common/Exception/Request/MissingArgument.php
Normal file
14
api/common/Exception/Request/MissingArgument.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user