Sha256: f2a0ebef17f8d3d19cf2eeb8800005f8c8b63609523305043fb83f4bb4c103ab

Contents?: true

Size: 876 Bytes

Versions: 10

Compression:

Stored size: 876 Bytes

Contents

// ==========================================================================
// Project:   Web File
// Copyright: ©2010 Strobe Inc. All rights reserved.
// License:   Licened under MIT license (see __preamble__.js)
// ==========================================================================

var messages = [
null,
'File Not Found',
'Security Error',
'Operation aborted',
'File not readable',
'Encoding Error'
];

var FileError = function(code) {
  this.code = code;
  this.message = messages[code];
};

FileError.prototype = new Error();
FileError.prototype.constructor = FileError;
FileError.prototype.toString = function() { return this.message; };

FileError.NOT_FOUND_ERR = 1;
FileError.SECURITY_ERR  = 2;
FileError.ABORT_ERR     = 3;
FileError.NOT_READABLE_ERR = 4;
FileError.ENCODING_ERR  = 5;

exports.FileError     = FileError;
exports.FileException = FileError;

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
spade-packager-0.1.0.1 packages/web-file/lib/errors.js
spade-packager-0.1.0 packages/web-file/lib/errors.js
spade-0.0.8.1 packages/web-file/lib/errors.js
spade-0.0.7 packages/web-file/lib/errors.js
spade-0.0.6 packages/web-file/lib/errors.js
spade-0.0.5 packages/web-file/lib/errors.js
spade-0.0.4 packages/web-file/lib/errors.js
spade-0.0.3 packages/web-file/lib/errors.js
spade-0.0.2 packages/web-file/lib/errors.js
spade-0.0.1 packages/web-file/lib/errors.js