Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
network_exception.dart
Go to the documentation of this file.
1import 'app_exception.dart';
2
3class NetworkException extends AppException {
5 required super.message,
6 super.code,
7 super.details,
8 });
9
10 factory NetworkException.noConnection() {
11 return const NetworkException(
12 message: 'No internet connection',
13 code: 'NETWORK_NO_CONNECTION',
14 );
15 }
16
17 factory NetworkException.timeout() {
18 return const NetworkException(
19 message: 'Connection timeout',
20 code: 'NETWORK_TIMEOUT',
21 );
22 }
23}
const NetworkException({ required super.message, super.code, super.details, })
final String message
Definition failures.dart:0