Jan Tvrdík try { ... if (!$ok) { throw new FooException(); }} catch (FooException $e) { ...} try { ... if (!$ok) { throw new FooException(); }} catch (FooException $e) {…