12345678910111213141516171819202122232425 |
- /*
- * Copyright (c) 2012 Mathieu Turcotte
- * Licensed under the MIT license.
- */
-
- var util = require('util');
-
- function IllegalArgumentError(message) {
- Error.call(this, message);
- this.message = message;
- }
- util.inherits(IllegalArgumentError, Error);
-
- IllegalArgumentError.prototype.name = 'IllegalArgumentError';
-
- function IllegalStateError(message) {
- Error.call(this, message);
- this.message = message;
- }
- util.inherits(IllegalStateError, Error);
-
- IllegalStateError.prototype.name = 'IllegalStateError';
-
- module.exports.IllegalStateError = IllegalStateError;
- module.exports.IllegalArgumentError = IllegalArgumentError;
|