Line data Source code
1 : /// An exception thrown when trying to access the device's location 2 : /// information while access is denied. 3 : class PermissionDeniedException implements Exception { 4 : /// Constructs the [PermissionDeniedException] 5 2 : const PermissionDeniedException(this.message); 6 : 7 : /// A [message] describing more details on the denied permission. 8 : final String? message; 9 : 10 1 : @override 11 : String toString() { 12 3 : if (message == null || message == '') { 13 : return 'Access to the location of the device is denied by the user.'; 14 : } 15 1 : return message!; 16 : } 17 : }