Skip to content

Create custom exception for concurreny issue #172

Description

@prolic

When 2 processes try to modify the same aggregate, a database level exception is thrown. We should catch that one in the event-store-adapter and throw a concurrency exception, when the problem came from two processes trying to create the same next aggregate version. This way you can handle the exception easier without relying on adapter-implementation and act accordingly (f.e. retry)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions