Saxonberg Server API
    Preparing search index...

    Class DestructError

    Programmatic-contract violation thrown by StuffApi.destruct() when a target's canDestruct() witness vetoes the destruction. Mirrors the shape of ContainmentError — separately named so callers can catch destruct-specific failures without overlapping the containment surface.

    forceDestruct() does not raise this even when canDestruct() returns { ok: false } — the witness still fires for observability, but force-bypass intentionally ignores the veto.

    Hierarchy

    • Error
      • DestructError
    Index

    Constructors

    Properties

    Constructors

    Properties

    cause?: unknown