Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OfflineError

Represents error object returned to user when offline

Usage:

client.mutate(...).catch((error)=> {
 if(error.networkError && error.networkError.offline){
   const offlineError: OfflineError =  error.networkError;
   offlineError.watchOfflineChange().then(...)
 }
});

Hierarchy

  • OfflineError

Index

Constructors

constructor

  • new OfflineError(offlineMutationPromise: Promise<any>): OfflineError

Properties

offline

offline: boolean = true

offlineMutationPromise

offlineMutationPromise: Promise<any>

Methods

watchOfflineChange

  • watchOfflineChange(): Promise<any>

Generated using TypeDoc