public interface PersistenceExceptionResolver
Modifier and Type | Method and Description |
---|---|
boolean |
isDuplicateKeyViolation(Exception exception)
Indicates whether the given
exception represents a duplicate key violation. |
boolean isDuplicateKeyViolation(Exception exception)
exception
represents a duplicate key violation. Typically, duplicate key
violations indicates concurrent access to an entity in the application. Two users might be accessing the same
Aggregate, for example.exception
- The exception to evaluatetrue
if the given exception represents a Duplicate Key Violation, false
otherwise.Copyright © 2010–2018. All rights reserved.