You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2014/04/19 01:15:47 UTC

git commit: Add error codes.

Repository: cordova-plugin-file
Updated Branches:
  refs/heads/dev 39d816f95 -> abcaf7007


Add error codes.

I find myself constantly checking the source code to see what each error code represents. I think this should be in the core doc. I'd like to actually add a bit more text, for example, explaining what an encoding error could mean, but for now I figure this is a good start.

(closes #37)

Signed-off-by: Shazron Abdullah <sh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/abcaf700
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/abcaf700
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/abcaf700

Branch: refs/heads/dev
Commit: abcaf70071dcbc369b8c9804710325cbe1ba3fed
Parents: 39d816f
Author: Raymond Camden <ra...@gmail.com>
Authored: Wed Apr 9 08:38:11 2014 -0500
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Apr 18 16:15:16 2014 -0700

----------------------------------------------------------------------
 doc/index.md | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/abcaf700/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 744007d..b47c95f 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -193,3 +193,19 @@ This has particularly been an issue with the File-Transfer plugin, which previou
 device-absolute-paths (and can still accept them). It has been updated to work correctly
 with FileSystem URLs, so replacing `entry.fullPath` with `entry.toURL()` should resolve any
 issues getting that plugin to work with files on the device.
+
+## List of Error Codes and Meanings
+When an error is thrown, one of the following codes will be used. 
+
+* 1 = NOT_FOUND_ERR
+* 2 = SECURITY_ERR
+* 3 = ABORT_ERR
+* 4 = NOT_READABLE_ERR
+* 5 = ENCODING_ERR
+* 6 = NO_MODIFICATION_ALLOWED_ERR
+* 7 = INVALID_STATE_ERR
+* 8 = SYNTAX_ERR
+* 9 = INVALID_MODIFICATION_ERR
+* 10 = QUOTA_EXCEEDED_ERR
+* 11 = TYPE_MISMATCH_ERR
+* 12 = PATH_EXISTS_ERR