Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-351

Provide the ability for certain runtime exceptions to be recognized as non-fatal, for rendering to the user.

    Details

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: