[jira] [Updated] (OFBIZ-3870) Extend GenericEntityExceptions and provide subclasses for different types of database errors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-3870) Extend GenericEntityExceptions and provide subclasses for different types of database errors

Nicolas Malin (Jira)

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

Sharan Foga updated OFBIZ-3870:
-------------------------------
    Sprint: Bug Crush Event - 21/2/2015

> Extend GenericEntityExceptions and provide subclasses for different types of database errors
> --------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-3870
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3870
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Deyan
>            Assignee: Adam Heath
>         Attachments: GenericEntityException_SQLState.patch, GenericEntityException_SQLState_v2.patch
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)