QoraOfflineException class

Thrown by QoraClient.fetchQuery when the device is offline, the query's NetworkMode is NetworkMode.online, and there is no cached data to return.

Widgets typically don't need to catch this directly — QoraBuilder exposes FetchStatus.paused instead. Catch it only in imperative one-shot QoraClient.fetchQuery call-sites where you need to handle the offline case explicitly.

try {
  final user = await client.fetchQuery<User>(
    key: ['users', userId],
    fetcher: () => api.getUser(userId),
  );
} on QoraOfflineException {
  showSnackBar('You are offline. Retrying when connected…');
}
Implemented types

Constructors

QoraOfflineException([String message = 'Query paused: device is offline.'])
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited