Clean Up Rethrowing of Exceptions

XMLWordPrintable

    • 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.)

            Assignee:
            Benn Oshrin (internet2.edu)
            Reporter:
            Benn Oshrin (internet2.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: