AI2 Component
(Version nb184)
PermissionException.java
Go to the documentation of this file.
1
// -*- mode: java; c-basic-offset: 2; -*-
2
// Copyright © 2018 MIT, All rights reserved
3
// Released under the Apache License, Version 2.0
4
// http://www.apache.org/licenses/LICENSE-2.0
5
6
package
com.google.appinventor.components.runtime.errors;
7
16
public
class
PermissionException
extends
RuntimeException {
17
18
private
final
String permissionNeeded;
19
24
public
PermissionException
(String permissionNeeded) {
25
this.permissionNeeded = permissionNeeded;
26
}
27
32
public
String
getPermissionNeeded
() {
33
return
permissionNeeded;
34
}
35
36
@Override
37
public
String
getMessage
() {
38
return
"Unable to complete the operation because the user denied permission: "
+ permissionNeeded;
39
}
40
}
com.google.appinventor.components.runtime.errors.PermissionException.getMessage
String getMessage()
Definition:
PermissionException.java:37
com.google.appinventor.components.runtime.errors.PermissionException
Definition:
PermissionException.java:16
com.google.appinventor.components.runtime.errors.PermissionException.getPermissionNeeded
String getPermissionNeeded()
Definition:
PermissionException.java:32
com.google.appinventor.components.runtime.errors.PermissionException.PermissionException
PermissionException(String permissionNeeded)
Definition:
PermissionException.java:24
com
google
appinventor
components
runtime
errors
PermissionException.java
Generated by
1.8.16