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