organizrnginxsonarrradarrplexdashboardcouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepagesabnzbdheimdallemby
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
490 B
21 lines
490 B
6 years ago
|
<?php
|
||
|
|
||
|
namespace Github\Exception;
|
||
|
|
||
|
/**
|
||
|
* MissingArgumentException.
|
||
|
*
|
||
|
* @author Joseph Bielawski <stloyd@gmail.com>
|
||
|
*/
|
||
|
class MissingArgumentException extends ErrorException
|
||
|
{
|
||
|
public function __construct($required, $code = 0, $previous = null)
|
||
|
{
|
||
|
if (is_string($required)) {
|
||
|
$required = [$required];
|
||
|
}
|
||
|
|
||
|
parent::__construct(sprintf('One or more of required ("%s") parameters is missing!', implode('", "', $required)), $code, $previous);
|
||
|
}
|
||
|
}
|