@ts-rust/std - v0.0.5
    Preparing search index...

    Interface EitherError<E>

    Base interface for CheckedError instances, providing methods to inspect and handle the contained error.

    interface EitherError<E> {
        cause?: unknown;
        message: string;
        name: string;
        stack?: string;
        handle<T>(f: (e: ResultError) => T, g: (e: E) => T): T;
        isExpected(): this is ExpectedError<E>;
        isUnexpected(): this is UnexpectedError<E>;
    }

    Type Parameters

    • E

    Hierarchy

    Index

    Properties

    cause?: unknown
    message: string
    name: string
    stack?: string

    Methods