Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-189

Add support for AT CATCH location

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • 2.0.0
    • Trigger Injection
    • None

    Description

      One good use of Byteman is to inject rules to log the root cause of an exception where existing code does to attach it as Throwable.initalCause. Unfortunately that is more difficult than it needs to be because you need to specify the location by line number (or other indirect method). There also seems to be some issues with accessing the caught exception by name via "$e" or similar.

      It would be simpler if there as an AT CATCH location you could specify, which make the caught exception available as $^ (as AT THROW does).

      Attachments

        Activity

          People

            rhn-engineering-adinn Andrew Dinn
            rhn-support-jlivings James Livingston (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: