Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
permission_exception.dart
Go to the documentation of this file.
1import 'app_exception.dart';
2
3class PermissionException extends AppException {
5 required super.message,
6 super.code,
7 super.details,
8 });
9
10 factory PermissionException.cameraAccess() {
11 return const PermissionException(
12 message: 'Camera access denied',
13 code: 'PERMISSION_CAMERA_DENIED',
14 );
15 }
16
17 factory PermissionException.locationAccess() {
18 return const PermissionException(
19 message: 'Location access denied',
20 code: 'PERMISSION_LOCATION_DENIED',
21 );
22 }
23
24 factory PermissionException.storageAccess() {
25 return const PermissionException(
26 message: 'Storage access denied',
27 code: 'PERMISSION_STORAGE_DENIED',
28 );
29 }
30}
const PermissionException({ required super.message, super.code, super.details, })
final String message
Definition failures.dart:0