PermissionNotGrantedException
class PermissionNotGrantedException(action: String, val notGranted: List<String>) : RuntimeException
Signals that at least one required permission has not been granted. notGranted contains a list of all permissions (their values of the android.Manifest.permission constants) that have not been granted.
Parameters
action
The name of the action that should have been performed where the permission would have been required.
notGranted
The list or permissions which have not been granted. The values of this list are the value of the constants defined in android.Manifest.permission