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 2013/02/22 11:24:13 UTC

[jira] [Updated] (ISIS-351) Provide the ability for certain runtime exceptions to be recognized as non-fatal, for rendering to the user.

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

Dan Haywood updated ISIS-351:
-----------------------------

    Priority: Major  (was: Blocker)
    
> Provide the ability for certain runtime exceptions to be recognized as non-fatal, for rendering to the user.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-351
>                 URL: https://issues.apache.org/jira/browse/ISIS-351
>             Project: Isis
>          Issue Type: New Feature
>          Components: Core, Viewer: Wicket
>    Affects Versions: viewer-wicket-1.1.0, core-1.1.0
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>             Fix For: viewer-wicket-1.2.0, core-1.2.0
>
>
> For example, if a low-level exception thrown as a result of a unique index constraint is thrown, then this isn't really a problem, so should be rendered appropriately for the user.
> The JDO object store throws a stack trace whose causal chain contains both:
> javax.jdo.JDODataStoreException
> Insert of object "dom.todo.ToDoItem@5a538af7" using statement "INSERT INTO TODOITEM (ATTACHMENT,COMPLETE,OWNEDBY,DESCRIPTION,CATEGORY,NOTES,DUEBY,VERSION) VALUES (?,?,?,?,?,?,?,?)" failed : integrity constraint violation: unique constraint or index violation; TODOITEM_U1 table: TODOITEM
> and even more low level below it:
> java.sql.SQLIntegrityConstraintViolationException
> integrity constraint violation: unique constraint or index violation; TODOITEM_U1 table: TODOITEM
> It ought to be possible to render to the user as "Sorry, a ToDoItem already exists" or something similar.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira