backend/lib/node/node_modules/ip-address/src/address-error.ts
2024-04-22 10:02:34 +02:00

13 lines
263 B
TypeScript

export class AddressError extends Error {
parseMessage?: string;
constructor(message: string, parseMessage?: string) {
super(message);
this.name = 'AddressError';
if (parseMessage !== null) {
this.parseMessage = parseMessage;
}
}
}