Skip to content

Instantly share code, notes, and snippets.

@sey
Last active December 16, 2015 13:29
Show Gist options
  • Save sey/5442013 to your computer and use it in GitHub Desktop.
Save sey/5442013 to your computer and use it in GitHub Desktop.
Cordova debug FileError codes
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