Error indicating a rule has attempted to write a value it indirectly depends on, or which has already been read by another rule in the current batch. (Also thrown when a cached function attempts to write a value at all, directly or indirectly.)

Hierarchy

  • Error
    • WriteConflict

Constructors

  • Parameters

    • Optional message: string

    Returns WriteConflict

Properties

message: string
name: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stack?: string
stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void