Class: GDFileError

GDFileError()

Describes error codes when working with files.

Constructor

new GDFileError()

Properties:
Name Type Description
NOT_FOUND_ERR Number 1
SECURITY_ERR Number 2
ABORT_ERR Number 3
NOT_READABLE_ERR Number 4
ENCODING_ERR Number 5
NO_MODIFICATION_ALLOWED_ERR Number 6
INVALID_STATE_ERR Number 7
SYNTAX_ERR Number 8
INVALID_MODIFICATION_ERR Number 9
QUOTA_EXCEEDED_ERR Number 10
TYPE_MISMATCH_ERR Number 11
PATH_EXISTS_ERR Number 12
Source:
Example
// This object is used by other classes and is not used directly
function errorCallback (error) {
    console.log(error.code); // 1, 2, 3, ...
}