1 | <?php |
||
20 | class ActionFailed extends \Exception |
||
21 | { |
||
22 | /** |
||
23 | * Return a Action Failed exception. |
||
24 | * |
||
25 | * @param string $msg |
||
26 | * @return \SebastianFeldmann\CaptainHook\Exception\ActionFailed |
||
27 | */ |
||
28 | 13 | public static function withMessage($msg) |
|
32 | |||
33 | /** |
||
34 | * Create a new exception based on a previous exception. |
||
35 | * |
||
36 | * This is useful if you need to rethrow an exception of any reason. |
||
37 | * |
||
38 | * @param \SebastianFeldmann\CaptainHook\Exception\ActionFailed $exception |
||
39 | * |
||
40 | * @return \SebastianFeldmann\CaptainHook\Exception\ActionFailed |
||
41 | */ |
||
42 | 1 | public static function fromPrevious(ActionFailed $exception) |
|
46 | } |
||
47 |