UNPKG

@hexadrop/error

Version:

Hexagonal architecture utils library

8 lines (6 loc) 253 B
import InvalidArgumentError from './invalid-argument'; export default class InvalidArgumentErrorMother { static create(message: string, name?: string, code?: string): InvalidArgumentError { return new InvalidArgumentError(message, name, code); } }