| @@ 36-48 (lines=13) @@ | ||
| 33 | * did return an invalid result. |
|
| 34 | * @author Celestino Diaz <[email protected]> |
|
| 35 | */ |
|
| 36 | class InvalidDependencyResolverResultTypeException extends Exception { |
|
| 37 | ||
| 38 | /** |
|
| 39 | * Class constructor. |
|
| 40 | * Calls the parent exception constructor. |
|
| 41 | * @param mixed $definitionResult |
|
| 42 | * @param null|\Exception $previousException |
|
| 43 | */ |
|
| 44 | public function __construct($definitionResult, \Exception $previousException = null) { |
|
| 45 | parent::__construct(sprintf("Invalid definition result of type `%s`.", gettype($definitionResult)), 0, $previousException); |
|
| 46 | } |
|
| 47 | ||
| 48 | } |
|
| 49 | ||
| @@ 36-48 (lines=13) @@ | ||
| 33 | * did return an invalid dependency type. |
|
| 34 | * @author Celestino Diaz <[email protected]> |
|
| 35 | */ |
|
| 36 | class InvalidDependencyTypeException extends Exception { |
|
| 37 | ||
| 38 | /** |
|
| 39 | * Class constructor. |
|
| 40 | * Calls the parent exception constructor. |
|
| 41 | * @param mixed $definitionDependency |
|
| 42 | * @param null|\Exception $previousException |
|
| 43 | */ |
|
| 44 | public function __construct($definitionDependency, \Exception $previousException = null) { |
|
| 45 | parent::__construct(sprintf("Invalid definition dependency of type `%s`.", gettype($definitionDependency)), 0, $previousException); |
|
| 46 | } |
|
| 47 | ||
| 48 | } |
|
| 49 | ||