Libraries
    Preparing search index...

    Error thrown when a request is attempted while the client is offline.

    Extends NetworkError so offline errors are caught by isNetworkError() checks.

    try {
    await client.todos.list();
    } catch (err) {
    if (isOfflineError(err)) {
    console.log('Cannot make requests while offline');
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    Properties

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