domain-toolkit
    Preparing search index...

    Class NotFoundInAggregate

    Thrown when a caller asks for something the aggregate does not contain. Distinct from an invariant violation: nothing is broken, the request is simply about something that does not exist.

    Hierarchy (View Summary)

    Index
    cause?: unknown
    name: string
    message: string
    stack?: string
    • Indicates whether the argument provided is a built-in Error instance or not.

      Parameters

      • error: unknown

      Returns error is Error