Class JdbcExceptionUtils
java.lang.Object
io.micronaut.data.jdbc.exceptions.JdbcExceptionUtils
JDBC exception classification utilities.
- Since:
- 5.2.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisIntegrityConstraintViolation(SQLException sqlException) static booleanisUniqueConstraintViolation(SQLException sqlException)
-
Method Details
-
isUniqueConstraintViolation
- Parameters:
sqlException- The SQL exception- Returns:
- Whether the exception or one of its chained exceptions represents a duplicate-key violation
-
isIntegrityConstraintViolation
- Parameters:
sqlException- The SQL exception- Returns:
- Whether the exception or one of its chained exceptions represents an integrity constraint violation
-