Skip to content

Use DataIntegrityViolationException instead of DuplicateKeyException as it is recommended by its Javadocs #8998

Closed
@artembilan

Description

@artembilan

Apparently some databases don't throw a proper code to identify a DuplicateKeyException, so better to catch DataIntegrityViolationException with the same meaning.

See more info in: https://stackoverflow.com/questions/78142353/spring-integration-and-spring-batch-transaction-manager-collision

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions