[
https://issues.apache.org/jira/browse/ISIS-786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dan Haywood resolved ISIS-786.
------------------------------
Resolution: Fixed
> 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
> Components: Core, Viewer: Wicket
> 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)