[OS-JIRA] Created: (CAY-215) resolveFault() needs to throw FaultFailureException subclass of CayenneRuntimeException

From: jir..bjectstyle.org
Date: Tue Oct 19 2004 - 11:15:48 EDT

  • Next message: jir..bjectstyle.org: "[OS-JIRA] Created: (CAY-216) Fresh RC1 install blows with exception when creating new project"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-215

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-215
        Summary: resolveFault() needs to throw FaultFailureException subclass of CayenneRuntimeException
           Type: Improvement

         Status: Assigned
       Priority: Major

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Fix Fors:
                 AFTER 1.1
       Versions:
                 1.1

       Assignee: Andrus Adamchik
       Reporter: Mike Kienenberger

        Created: Tue, 19 Oct 2004 11:15 AM
        Updated: Tue, 19 Oct 2004 11:15 AM

    Description:
    resolveFault() was changed during the development of 1.1 to throw a CayenneRuntimeException when a database integrity error occurs.

        throw new CayenneRuntimeException("Error resolving fault, no matching row exists in the database for ObjectId: " + getObjectId());

    The exception thrown should be made a subclass of CayenneRuntimeException() as there are times when application code must expect and handle this condition.

    Possible names for this Exception are FaultFailureException, DatabaseIntegrityException or DataIntegrityException.

    Possible instance variables for this exception could include the ObjectId or the DataObject instance being resolved.

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Tue Oct 19 2004 - 11:15:49 EDT