Uploaded image for project: 'Solder'
  1. Solder
  2. SOLDER-147

Provide a way to rethrow a different exception

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.Beta1
    • Component/s: Core
    • Labels:
      None
    • Affects:
      Documentation (Ref Guide, User Guide, etc.)
    • Estimated Difficulty:
      Low

      Description

      As an alternative to allowing a handler to rethrow the original exception, Catch should allow a handler to specify a different exception to throw. This may be a more informative exception, yet should still be rethrown outside of Catch.

        Gliffy Diagrams

          Activity

          Hide
          dan.j.allen Dan Allen added a comment -

          The API I propose for this is:

          CaughtException#rethrow(Throwable t)

          This says "rethrow the exception, but use this one in place of the original"

          Show
          dan.j.allen Dan Allen added a comment - The API I propose for this is: CaughtException#rethrow(Throwable t) This says "rethrow the exception, but use this one in place of the original"

            People

            • Assignee:
              lightguard Jason Porter
              Reporter:
              dan.j.allen Dan Allen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development