File

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

Description

When mobile phone number is not valid this error will throw.

Extends

Error

Constructor

constructor(nationalCode: string)
Parameters :
Name Type Optional
nationalCode string No
export class InvalidNationalCodeError extends Error {
    constructor(nationalCode: string = '') {
        super(`The national code value (${nationalCode}) is not a valid national code.`);
    }
}

results matching ""

    No results matching ""