1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Cli\Exception; |
4: | |
5: | use Salient\Core\AbstractMultipleErrorException; |
6: | |
7: | /** |
8: | * Thrown when invalid command line arguments are given |
9: | * |
10: | * @api |
11: | */ |
12: | class CliInvalidArgumentsException extends AbstractMultipleErrorException |
13: | { |
14: | public function __construct(string ...$errors) |
15: | { |
16: | parent::__construct('Invalid arguments', ...$errors); |
17: | |
18: | // Must be called after parent::__construct() |
19: | $this->ExitStatus = 1; |
20: | } |
21: | } |
22: |