-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add loadWifiList meaningfull Exceptions (#81)
Co-authored-by: Elias Lecomte <[email protected]>
- Loading branch information
1 parent
1ba6e99
commit cc8f7c1
Showing
5 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
android/src/main/java/com/reactlibrary/rnwifi/errors/LoadWifiListErrorCodes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.reactlibrary.rnwifi.errors; | ||
|
||
public enum LoadWifiListErrorCodes { | ||
/** | ||
* Starting android 6, location permission needs to be granted for wifi scanning. | ||
*/ | ||
locationPermissionMissing, | ||
/** | ||
* Starting Android 6, location services needs to be on to scan for wifi networks. | ||
*/ | ||
locationServicesOff, | ||
/** | ||
* Json parsing exception while parsing the result. | ||
*/ | ||
jsonParsingException, | ||
/** | ||
* An exception caused by JS requesting the UI manager to perform an illegal view operation. | ||
*/ | ||
illegalViewOperationException, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters