@@ 5-14 (lines=10) @@ | ||
2 | ||
3 | namespace Robo\Exception; |
|
4 | ||
5 | class TaskException extends \Exception |
|
6 | { |
|
7 | ||
8 | /** |
|
9 | * TaskException constructor. |
|
10 | * |
|
11 | * @param string|object $class |
|
12 | * @param string $message |
|
13 | */ |
|
14 | public function __construct($class, $message) |
|
15 | { |
|
16 | if (is_object($class)) { |
|
17 | $class = get_class($class); |
@@ 5-14 (lines=10) @@ | ||
2 | ||
3 | namespace Robo\Exception; |
|
4 | ||
5 | class TaskExitException extends \Exception |
|
6 | { |
|
7 | ||
8 | /** |
|
9 | * TaskExitException constructor. |
|
10 | * |
|
11 | * @param string|object $class |
|
12 | * @param string $message |
|
13 | * @param int $status |
|
14 | */ |
|
15 | public function __construct($class, $message, $status) |
|
16 | { |
|
17 | if (is_object($class)) { |