Class IdDatabaseExceptions
java.lang.Object
com.io7m.idstore.database.postgres.internal.IdDatabaseExceptions
Functions to handle database exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdDatabaseException
handleDatabaseException
(IdDatabaseTransactionType transaction, org.jooq.exception.DataAccessException e, Map<String, String> attributes) Handle a data access exception.
-
Method Details
-
handleDatabaseException
public static IdDatabaseException handleDatabaseException(IdDatabaseTransactionType transaction, org.jooq.exception.DataAccessException e, Map<String, String> attributes) Handle a data access exception.- Parameters:
transaction
- The transactione
- The exceptionattributes
- The extra exception attributes- Returns:
- The resulting exception
-