'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';
}

module.exports = AvaError;

'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;

make AvaError inherit from Error