ConflictMessage

org.sigilaris.core.failure.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 Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def errorKey(domain: String, reason: String, code: FailureCode): ErrorKey

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
def format(domain: String, reason: String, message: String, detail: Option[String]): String

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
def formatWithCode(domain: String, reason: String, message: String, detail: Option[String], code: FailureCode): String

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.

Default failure code for generic conflict errors.

Attributes

Source
ConflictMessage.scala
val Prefix: String

Prefix prepended to all conflict error keys.

Prefix prepended to all conflict error keys.

Attributes

Source
ConflictMessage.scala