Skip to content
Français

TransportConflict

import { TransportConflict } from "@elie-laloum/outpost";

Thrown when a conditional write or removal, or a read pinned to a revision, finds another revision or no object; key names the object. Re-read the object before deciding whether to retry.

Complete example and detailed rules.

  • keyRequired
    string
    Logical key whose expected revision did not match the stored object.
  • nameRequired
    string
    Error class name used to distinguish this failure from other JavaScript errors.
  • messageRequired
    string
    Human-readable explanation of the failure.
  • stackOptional
    string | undefined
    JavaScript stack trace for the error, when available.
  • causeOptional
    unknown
    Underlying failure this error wraps; quotaFault() and unavailableFault() follow this chain.
export declare class TransportConflict extends Error {
  readonly key: string;
  constructor(key: string);
}