This issue can't be edited

Because it belongs to an archived project. Jira admins can restore projects from the archive.

Allow grid dialects to map custom exceptions into a set of standardized exception types

Description

With the error handling API established with https://hibernate.atlassian.net/browse/OGM-465#icft=OGM-465 users can decide whether to continue or abort the current flush cycle upon a failed operation based on the type of the occurred exception.

In order to allow handlers being implemented in a more datastore-agnostic way, there should be means for translating dialect-specific exceptions into more generic OGM-defined exceptions. E.g. a MongoTimeoutException or a HTTP connection timeout exception in the case of CouchDB would be translated into a NoSqlTimeoutException. The error handler would receive that translated exception (with the original one as a cause) so it can do its decision in a more portable fashion.

Grid dialects would need the ability to contribute their implementation of an exception translator contract which would be invoked prior to passing on any exception raised by the dialect implementation.

Environment

None

Activity

Show:

Details

Assignee

Reporter

Participants

Gunnar Morling

Components

Priority

Created March 12, 2015 at 12:38 PM
Updated April 29, 2015 at 6:54 AM

Flag notifications