Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-786

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • core-1.4.0
    • core-1.5.0
    • Core, Viewer Wicket
    • 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

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: