Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-3870

Extend GenericEntityExceptions and provide subclasses for different types of database errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • framework
    • None
    • Bug Crush Event - 21/2/2015

    Description

      Currently EntityEngine provides only GenericDuplicateKeyException which is never used.

      It is needed for development purposes to create more detailed exceptions level which allows developers to better handle
      database errors and warnings and help distinguish between recoverable and not-recoverable errors.

      This improvement provides the following classes:

      GenericIntegrityConstraintViolationException -> GenericEntityException

      GenericRestrictViolationException -> GenericIntegrityConstraintViolationException
      GenericNotNullViolationException -> GenericIntegrityConstraintViolationException
      GenericGoreignKeyViolationException -> GenericIntegrityConstraintViolationException
      GenericDuplicateKeyException -> GenericIntegrityConstraintViolationException ( modified superclass )
      GEnericCheckViolationException -> GenericIntegrityConstraintViolationException

      Attachments

        Activity

          People

            doogie Adam Heath
            deyan@deyan.info Deyan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: