@hexadrop/error
Version:
Hexagonal architecture utils library
18 lines (15 loc) • 537 B
TypeScript
import DomainError from './domain-error.js';
/**
* Class representing an InvalidArgumentError.
* @extends DomainError
*/
declare class InvalidArgumentError extends DomainError {
/**
* Create an InvalidArgumentError.
* @param {string} message - The error message.
* @param {string} [name='InvalidArgumentError'] - The name of the error.
* @param {string} [code='HEX(400)'] - The error code.
*/
constructor(message: string, name?: string, code?: string);
}
export { InvalidArgumentError as default };