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.
1
import
'app_exception.dart';
2
3
class
NetworkException
extends
AppException
{
4
const
NetworkException
({
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
}
AppException
Definition
auth_exception.dart:3
AppException::NetworkException
const NetworkException({ required super.message, super.code, super.details, })
message
final String message
Definition
failures.dart:0
lib
core
error
exceptipns
network_exception.dart
Generated by
1.16.1