-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor
-
Affects Version/s: COmanage Registry 5.0.0 (Pupal Eclosion)
-
None
For no particularly good historical reasons, there are a number of places where an exception is rethrown by creating a new Exception, eg:
{{ catch(\Exception $e) { throw new \Exception($e->getMessage()); } }}
This loses the stack trace, and is more complicated than just rethrowing the exception:
{{ catch(\Exception $e} { throw $e; } }}
Review and clean these up.
(There are some cases where an exception is intentionally recast to a different type of exception, those should probably remain as is.)