Class CADatabaseExceptions
java.lang.Object
com.io7m.cardant.database.postgres.internal.CADatabaseExceptions
Functions to handle database exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CADatabaseExceptionhandleDatabaseException(com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction, org.jooq.exception.DataAccessException e, Map.Entry<String, String>... attributes) Handle a data access exception.static CADatabaseExceptionhandleDatabaseException(com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction, org.jooq.exception.DataAccessException e, SortedMap<String, String> attributes) Handle a data access exception.
-
Method Details
-
handleDatabaseException
@SafeVarargs public static CADatabaseException handleDatabaseException(com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction, org.jooq.exception.DataAccessException e, Map.Entry<String, String>... attributes) Handle a data access exception.- Parameters:
transaction- The transactione- The exceptionattributes- The attributes- Returns:
- The resulting exception
-
handleDatabaseException
public static CADatabaseException handleDatabaseException(com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction, org.jooq.exception.DataAccessException e, SortedMap<String, String> attributes) Handle a data access exception.- Parameters:
transaction- The transactione- The exceptionattributes- The attributes- Returns:
- The resulting exception
-