Newer
Older
vue-indexer / node_modules / ip-address / src / address-error.ts
@eugene-sukhodolskiy eugene-sukhodolskiy on 24 Sep 263 bytes v1.0
export class AddressError extends Error {
  parseMessage?: string;

  constructor(message: string, parseMessage?: string) {
    super(message);

    this.name = 'AddressError';

    if (parseMessage !== null) {
      this.parseMessage = parseMessage;
    }
  }
}