Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

errors.js 632B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2012 Mathieu Turcotte
  3. * Licensed under the MIT license.
  4. */
  5. var util = require('util');
  6. function IllegalArgumentError(message) {
  7. Error.call(this, message);
  8. this.message = message;
  9. }
  10. util.inherits(IllegalArgumentError, Error);
  11. IllegalArgumentError.prototype.name = 'IllegalArgumentError';
  12. function IllegalStateError(message) {
  13. Error.call(this, message);
  14. this.message = message;
  15. }
  16. util.inherits(IllegalStateError, Error);
  17. IllegalStateError.prototype.name = 'IllegalStateError';
  18. module.exports.IllegalStateError = IllegalStateError;
  19. module.exports.IllegalArgumentError = IllegalArgumentError;