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

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

    XMLWordPrintableJSON

    Details

      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 Daniel Keir Haywood
              Reporter:
              danhaywood Daniel Keir Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: