Files
Heimdall/vendor/knplabs/github-api/lib/Github/Exception/MissingArgumentException.php
2018-10-18 15:59:38 +01:00

21 lines
490 B
PHP

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