Skip to content
Permalink
Browse files
Add handling for SecurityException
 This closes #142
  • Loading branch information
cjpearson authored and stevengill committed Sep 7, 2016
1 parent 9860bbb commit 9ad67e69c7e601b8330fed3e093c8657ab45be35
Showing 1 changed file with 2 additions and 0 deletions.
@@ -682,6 +682,8 @@ public void run() {
callbackContext.error(FileUtils.TYPE_MISMATCH_ERR);
} else if(e instanceof JSONException ) {
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));
} else if (e instanceof SecurityException) {
callbackContext.error(FileUtils.SECURITY_ERR);
} else {
e.printStackTrace();
callbackContext.error(FileUtils.UNKNOWN_ERR);

0 comments on commit 9ad67e6

Please sign in to comment.