ReadFileError.js 800 B

123456789101112131415161718192021222324252627282930
  1. // Generated by CoffeeScript 1.12.7
  2. /*
  3. ExternalEditor
  4. Kevin Gravier <kevin@mrkmg.com>
  5. MIT
  6. */
  7. (function() {
  8. var ReadFileError,
  9. extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  10. hasProp = {}.hasOwnProperty;
  11. ReadFileError = (function(superClass) {
  12. extend(ReadFileError, superClass);
  13. ReadFileError.prototype.message = 'Failed to read temporary file';
  14. function ReadFileError(original_error) {
  15. this.original_error = original_error;
  16. }
  17. return ReadFileError;
  18. })(Error);
  19. module.exports = ReadFileError;
  20. }).call(this);