Aidra Driver
1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
cache_exception.dart
Go to the documentation of this file.
1
import
'app_exception.dart';
2
3
class
CacheException
extends
AppException
{
4
const
CacheException
({
5
required super.message,
6
super.code,
7
super.details,
8
});
9
10
factory
CacheException
.notFound() {
11
return
const
CacheException
(
12
message
:
'Data not found in cache'
,
13
code:
'CACHE_NOT_FOUND'
,
14
);
15
}
16
17
factory
CacheException
.expired() {
18
return
const
CacheException
(
19
message
:
'Cache data expired'
,
20
code:
'CACHE_EXPIRED'
,
21
);
22
}
23
24
factory
CacheException
.invalidData() {
25
return
const
CacheException
(
26
message
:
'Invalid cache data format'
,
27
code:
'CACHE_INVALID_DATA'
,
28
);
29
}
30
}
AppException
Definition
auth_exception.dart:3
AppException::CacheException
const CacheException({ required super.message, super.code, super.details, })
message
final String message
Definition
failures.dart:0
lib
core
error
exceptipns
cache_exception.dart
Generated by
1.16.1