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.
1import 'app_exception.dart';
2
3class CacheException extends AppException {
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}
const CacheException({ required super.message, super.code, super.details, })
final String message
Definition failures.dart:0