You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2014/05/22 08:19:38 UTC

[jira] [Updated] (ISIS-786) Allow event bus subscribers to veto interactions by throwing a RecoverableException or NonRecoverableException

     [ https://issues.apache.org/jira/browse/ISIS-786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Haywood updated ISIS-786:
-----------------------------

    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.

> Allow event bus subscribers to veto interactions by throwing a RecoverableException or NonRecoverableException
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-786
>                 URL: https://issues.apache.org/jira/browse/ISIS-786
>             Project: Isis
>          Issue Type: New Feature
>    Affects Versions: core-1.4.0
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>             Fix For: core-1.5.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)