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