peerix - v0.8.0
    Preparing search index...

    Class PeerixError

    Custom error class for Peerix-related errors. Extends the built-in Error class and adds a code property.

    Hierarchy

    • Error
      • PeerixError
    Index
    • Creates a new PeerixError instance.

      Parameters

      • error: unknown

        An error object, string message, or any value to wrap.

      • Optionalcode: ErrorCode

        An error code for categorizing the error. If omitted, a wrapped PeerixError keeps its code, and anything else gets UNKNOWN_ERROR.

      Returns PeerixError

    cause?: unknown

    The wrapped error, if an error object was wrapped.

    code: ErrorCode

    An error code for categorizing the error.

    message: string

    The error message providing details about the error.

    name: string

    The name of the error, typically Error or a specific error type.

    stack?: string