ConflictError
Base class for errors a Runtime raises when a write is rejected as stale because another execution changed the same data first.
Remarks
Section titled “Remarks”Catch this class to treat every conflict alike, or a subclass such as StateTransitionConflictError to handle one kind. Retry a conflict only from fresh Item references and only when the surrounding callback is safe to run again.
Extends
Section titled “Extends”BaseAlpyneRuntimeError
Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ConflictError(
message?):ConflictError
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”ConflictError
Inherited from
Section titled “Inherited from”BaseAlpyneRuntimeError.constructor
Constructor
Section titled “Constructor”new ConflictError(
message?,options?):ConflictError
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”ConflictError
Inherited from
Section titled “Inherited from”BaseAlpyneRuntimeError.constructor
Properties
Section titled “Properties”
abstractreadonlycode:string
Stable machine-readable discriminator for this kind of error.
Inherited from
Section titled “Inherited from”BaseAlpyneRuntimeError.code
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON():
object
Serializes the error as its code, message, and stack for logging and transport.
Returns
Section titled “Returns”object
code:
string
message
Section titled “message”message:
string
stack:
string|undefined
Inherited from
Section titled “Inherited from”BaseAlpyneRuntimeError.toJSON

