Module utility.domain.exception
Class VersionMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
uk.co.jasonmarston.kiunzi.utility.domain.exception.DomainException
uk.co.jasonmarston.kiunzi.utility.domain.exception.VersionMismatchException
- All Implemented Interfaces:
Serializable
Exception thrown when an optimistic locking conflict is detected.
Raised when the version of a persisted aggregate does not match the version held by the caller, indicating that another party has modified the resource since it was last read.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVersionMismatchException(String message) Constructs aVersionMismatchExceptionwith the given detail message.VersionMismatchException(String message, Throwable cause) Constructs aVersionMismatchExceptionwith the given detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VersionMismatchException
Constructs aVersionMismatchExceptionwith the given detail message.- Parameters:
message- the detail message describing the version conflict
-
VersionMismatchException
Constructs aVersionMismatchExceptionwith the given detail message and cause.- Parameters:
message- the detail message describing the version conflictcause- the underlying cause
-