domain-toolkit
    Preparing search index...

    Class IllegalStateTransition

    A specialised invariant violation for entities whose lifecycle is a state machine. Kept distinct because it is by far the most common shape of rule in this domain: a physical copy of a book moves through legal states only.

    Hierarchy (View Summary)

    Index
    from: string
    to: string
    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