You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
305 B
JavaScript
15 lines
305 B
JavaScript
'use strict';
|
|
|
|
function AvaError(message) {
|
|
if (!(this instanceof AvaError)) {
|
|
throw new TypeError('Class constructor AvaError cannot be invoked without \'new\'');
|
|
}
|
|
|
|
this.message = message;
|
|
this.name = 'AvaError';
|
|
}
|
|
|
|
AvaError.prototype = Object.create(Error.prototype);
|
|
|
|
module.exports = AvaError;
|