Sanity Library Reference Docs
    Preparing search index...

    Base class of the engine's structured errors. kind is the stable discriminant — render on it; name mirrors the concrete class for logs. Each subclass pins its literal via the K parameter, so passing a mismatched kind to super is a compile error. Advisory like every engine check: catching one of these explains a refusal, it does not enforce anything.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • args: {
            entryName: string;
            entryType: string;
            issues: string[];
            mode: "value" | "item";
        }

      Returns FieldValueShapeError

    Properties

    cause?: unknown
    entryName: string
    entryType: string
    issues: string[]
    kind: "field-value-shape"
    message: string
    name: string
    stack?: string