Binary Raw - Docs
    Preparing search index...

    Class DomainError

    Error class for domain-specific validation failures. Used to represent invalid operations on offsets, byte counts, and ranges.

    Hierarchy

    • Error
      • DomainError
    Index

    Constructors

    Properties

    Constructors

    • Creates a new DomainError.

      Parameters

      • message: string

        Human-readable description of the error.

      • code: "NEGATIVE" | "OVERFLOW" | "MISALIGNED" | "INVALID"

        Specific error code indicating the failure type.

      Returns DomainError

    Properties

    code: "NEGATIVE" | "OVERFLOW" | "MISALIGNED" | "INVALID"

    Specific error code indicating the failure type.