1 | <?php |
||
25 | class WorkflowNotFound extends \RuntimeException implements WorkflowException |
||
26 | { |
||
27 | /** |
||
28 | * Create exception with the workflow name. |
||
29 | * |
||
30 | * @param string $workflowName Current workflow name. |
||
31 | * @param int $code Error code. |
||
32 | * @param Exception $previous Previous thrown exception. |
||
33 | * |
||
34 | * @return self |
||
35 | */ |
||
36 | public static function withName(string $workflowName, int $code = 0, Exception $previous = null) |
||
40 | |||
41 | /** |
||
42 | * Create exception with the workflow name. |
||
43 | * |
||
44 | * @param EntityId $entityId Entity id. |
||
45 | * @param int $code Error code. |
||
46 | * @param Exception $previous Previous thrown exception. |
||
47 | * |
||
48 | * @return self |
||
49 | */ |
||
50 | public static function forEntity(EntityId $entityId, int $code = 0, Exception $previous = null) |
||
54 | } |
||
55 |