Sanity Library Reference Docs
    Preparing search index...

    Class WorkflowError<K>Abstract

    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.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    Properties

    cause?: unknown
    kind: K
    message: string
    name: string
    stack?: string