backend/lib/node/node_modules/ip-address/src/address-error.ts

14 lines
263 B
TypeScript
Raw Normal View History

2024-10-26 17:26:06 +02:00
export class AddressError extends Error {
parseMessage?: string;
constructor(message: string, parseMessage?: string) {
super(message);
this.name = 'AddressError';
if (parseMessage !== null) {
this.parseMessage = parseMessage;
}
}
}