| @@ 9-20 (lines=12) @@ | ||
| 6 | /** |
|
| 7 | * @codeCoverageIgnore |
|
| 8 | */ |
|
| 9 | class UnknownFilterException extends \Exception |
|
| 10 | { |
|
| 11 | public function __construct($filterName = "", $scope = "", $code = 0, \Exception $previous = null) |
|
| 12 | { |
|
| 13 | if ($scope == "") { |
|
| 14 | $message = sprintf('Unknown filter "%s".', $filterName); |
|
| 15 | } else { |
|
| 16 | $message = sprintf('Unknown filter "%s" in "%s".', $filterName, $scope); |
|
| 17 | } |
|
| 18 | parent::__construct($message, $code, $previous); |
|
| 19 | } |
|
| 20 | } |
|
| @@ 6-17 (lines=12) @@ | ||
| 3 | namespace ConfigToken\TokenResolver\Exception; |
|
| 4 | ||
| 5 | ||
| 6 | class UnknownTokenException extends \Exception |
|
| 7 | { |
|
| 8 | public function __construct($tokenName = "", $scope = "", $code = 0, \Exception $previous = null) |
|
| 9 | { |
|
| 10 | if ($scope == "") { |
|
| 11 | $message = sprintf('Unknown token "%s".', $tokenName); |
|
| 12 | } else { |
|
| 13 | $message = sprintf('Unknown token "%s" in "%s".', $tokenName, $scope); |
|
| 14 | } |
|
| 15 | parent::__construct($message, $code, $previous); |
|
| 16 | } |
|
| 17 | } |
|