@hexadrop/error
Version:
Hexagonal architecture utils library
20 lines (17 loc) • 722 B
TypeScript
import DomainError from './domain-error.js';
/**
* Class representing a DomainNotFoundError.
* @extends DomainError
*/
declare class DomainNotFoundError extends DomainError {
/**
* Create a DomainNotFoundError.
* @param {string} domain - The domain in which the error occurred.
* @param {string} id - The ID that was not found in the domain.
* @param {string} [param='id'] - The parameter that was not found.
* @param {string} [name='DomainNotFoundError'] - The name of the error.
* @param {string} [code='HEX(404)'] - The error code.
*/
constructor(domain: string, id: string, parameter?: string, name?: string, code?: string);
}
export { DomainNotFoundError as default };