aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Function normalizeAftermathTransportError

    • Converts an unknown thrown value into an AftermathTransportError.

      Existing AftermathTransportError instances are returned unchanged. An aborted signal produces abort unless the signal reason or original error identifies a timeout. Without an aborted signal, timeout names and known timeout codes produce timeout; all other values produce network. Error codes prefer the original error's code over the signal reason's code.

      Parameters

      • error: unknown

        The value thrown by fetch or response handling.

      • Optionalsignal: AbortSignal

        The optional signal used for the operation.

      Returns AftermathTransportError

      The original normalized error or a new structured transport error.