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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14005665#comment-14005665 ] 

ASF subversion and git services commented on ISIS-786:
------------------------------------------------------

Commit ca7144f82b039a12092f8f57d7e40c377df643f9 in isis's branch refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=ca7144f ]

ISIS-786: event subscribers can now throw a RecoverableException or a NonRecoverableException.

... this will veto the transaction.

Any other exception is ignored.

In addition:
- fixed the todo app's demo of RecoverableExceptionAutoEscalated.


> 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)