pt-id
Version:
Validate and generate Portuguese specific identity numbers
14 lines (12 loc) • 422 B
JavaScript
function InvalidArgumentError(message) {
this.name = 'InvalidArgumentError';
this.message = message || 'Invalid Argument';
if (Error.captureStackTrace) {
Error.captureStackTrace(this, InvalidArgumentError);
}
}
InvalidArgumentError.prototype = Object.create(Error.prototype);
InvalidArgumentError.prototype.constructor = InvalidArgumentError;
module.exports = {
InvalidArgumentError: InvalidArgumentError
};