Hi all,
Sometimes exception are catched 1 and never dealt with 2.
Coupled with exception nesting or even outright overriden exception 3 it makes development and debugging very complicated.
Could we just set the previous exception, even just the last one, as the previous exception at L107 ?
|
} catch (\Exception $e) { |
|
continue; |
|
} |
|
throw new NoResultException(sprintf('Unable to find an entity of type "%s" for identifier "%s"', $class, $key)); |
- https://github.com/objective-php/gateway/blob/master/src/MetaGateway.php#L80-L83
Hi all,
Sometimes exception are catched 1 and never dealt with 2.
Coupled with exception nesting or even outright overriden exception 3 it makes development and debugging very complicated.
Could we just set the previous exception, even just the last one, as the previous exception at L107 ?
mysql-gateway/src/AbstractMySqlGateway.php
Lines 98 to 100 in 9cb3297
mysql-gateway/src/AbstractMySqlGateway.php
Line 107 in 9cb3297