Last active
December 16, 2015 13:29
-
-
Save sey/5442013 to your computer and use it in GitHub Desktop.
Cordova debug FileError codes
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
function debug() { | |
"use strict"; | |
var errorsCode = [ | |
{ 'FileError.NOT_FOUND_ERR': FileError.NOT_FOUND_ERR }, | |
{ 'FileError.SECURITY_ERR': FileError.SECURITY_ERR }, | |
{ 'FileError.ABORT_ERR': FileError.ABORT_ERR }, | |
{ 'FileError.NOT_READABLE_ERR': FileError.NOT_READABLE_ERR }, | |
{ 'FileError.ENCODING_ERR': FileError.ENCODING_ERR }, | |
{ 'FileError.NO_MODIFICATION_ALLOWED_ERR': FileError.NO_MODIFICATION_ALLOWED_ERR }, | |
{ 'FileError.INVALID_STATE_ERR': FileError.INVALID_STATE_ERR }, | |
{ 'FileError.SYNTAX_ERR': FileError.SYNTAX_ERR }, | |
{ 'FileError.INVALID_MODIFICATION_ERR': FileError.INVALID_MODIFICATION_ERR }, | |
{ 'FileError.QUOTA_EXCEEDED_ERR': FileError.QUOTA_EXCEEDED_ERR }, | |
{ 'FileError.TYPE_MISMATCH_ERR': FileError.TYPE_MISMATCH_ERR }, | |
{ 'FileError.PATH_EXISTS_ERR': FileError.PATH_EXISTS_ERR } | |
]; | |
errorsCode.forEach(function (element) { | |
console.log(JSON.stringify(element)); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment