ConflictMessage
Factory for structured conflict failure messages.
Encodes conflict information (e.g., optimistic concurrency violations) into a standardized string format using FailureMessageFormat.
Attributes
- Source
- ConflictMessage.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ConflictMessage.type
Members list
Value members
Concrete methods
Builds an ErrorKey for a conflict failure, validating the key format.
Builds an ErrorKey for a conflict failure, validating the key format.
Value parameters
- code
-
the failure code to attach
- domain
-
the error domain
- reason
-
the specific reason
Attributes
- Returns
-
an ErrorKey with the validated or fallback key
- Source
- ConflictMessage.scala
Formats a conflict failure message with the default failure code.
Formats a conflict failure message with the default failure code.
Value parameters
- detail
-
optional additional detail appended after a separator
- domain
-
the error domain (e.g., "state", "version")
- message
-
human-readable description
- reason
-
the specific reason within the domain
Attributes
- Returns
-
the encoded failure message string
- Source
- ConflictMessage.scala
Formats a conflict failure message with a custom failure code.
Formats a conflict failure message with a custom failure code.
Value parameters
- code
-
the failure code to attach
- detail
-
optional additional detail
- domain
-
the error domain
- message
-
human-readable description
- reason
-
the specific reason within the domain
Attributes
- Returns
-
the encoded failure message string
- Source
- ConflictMessage.scala
Concrete fields
Default failure code for generic conflict errors.
Prefix prepended to all conflict error keys.