sendErrorMessage(\Exception $e){ try { /* nic */ } catch( AError $e ) { handler1( $e ); } catch ( BError $b ) { handler2( $e ); }
ale co mam wpisać w try, bo nie może być pusty? Czy muszę użyć instanceof zamiast catch?
sendErrorMessage(\Exception $e){ try { /* nic */ } catch( AError $e ) { handler1( $e ); } catch ( BError $b ) { handler2( $e ); }