protected handlePossibleNonStatemachineException ( Exception $e, integer $code, |
||
$e | Exception | |
$code | integer | if the exception is not of type Exception, wrap it and use this code. |
$transition | optional. if set, we handle it as a transition exception too so it can be logged or handled |
protected function handlePossibleNonStatemachineException(\Exception $e, $code, $transition = null)
{
$e = Utils::wrapToStateMachineException($e, $code);
if ($transition !== null) {
$this->handleTransitionException($transition, $e);
}
throw $e;
}