universal-common
Version:
Library that provides useful missing base class library functionality.
14 lines • 408 B
JavaScript
/**
* Error thrown when an argument provided to a method is invalid.
* @extends {Error}
*/
export default class ArgumentError extends Error {
/**
* Creates a new ArgumentError instance.
* @param {string} message - The error message describing why the argument is invalid.
*/
constructor(message) {
super(message);
this.name = "ArgumentError";
}
}