Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-786

Allow event bus subscribers to veto interactions by throwing a RecoverableException or NonRecoverableException

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: core-1.4.0
    • Fix Version/s: core-1.5.0
    • Component/s: Core, Core: Viewer: Wicket
    • Labels:
      None

      Description

      If the subscriber method throws either an org.apache.isis.applib.RecoverableException or an org.apache.isis.applib.NonRecoverableException, then the transaction will be aborted and the interaction effectively vetoed.

      A RecoverableException will be rendered in a user-friendly manner to the end-ser, a NonRecoverableException rendered as a serious/unexpected error.

      Any other exception type (eg an "accidental" one such as NullPointerException) will be ignored. This preserves previous behaviour.

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: