File

projects/ngx-persian/src/lib/Services/InvalidMobileOperator.error.ts

Description

This error will throw when there is no valid mobile operator for inputted mobile phone number.

Extends

Error

Constructor

constructor(...params: any[])
Parameters :
Name Type Optional
params any[] No
export class InvalidMobileOperatorError extends Error {
  constructor(...params) {
    super(...params);

    // Maintains proper stack trace for where our error was thrown (only available on V8)
    // @ts-ignore
    if (Error.captureStackTrace) {
      // @ts-ignore
      Error.captureStackTrace(this, InvalidMobileOperatorError);
    }

    this.message = 'Operator of this number is not recognizable.';
  }
}

result-matching ""

    No results matching ""