Evercatch - v0.8.0
    Preparing search index...

    Type Alias Options<E>

    Options for error handling.

    type Options<E = Error> = {
        onError?: (err: E) => void;
        transformError?: (err: unknown) => E;
    }

    Type Parameters

    • E = Error

      The type of the error.

    Index

    Properties

    onError?: (err: E) => void

    Callback to handle the error.

    transformError?: (err: unknown) => E

    Function to transform the caught error.