projects/ngx-persian/src/lib/Services/InvalidNationalCode.error.ts
When mobile phone number is not valid this error will throw.
Error
constructor(nationalCode: string)
|
||||||
Parameters :
|
export class InvalidNationalCodeError extends Error {
constructor(nationalCode: string = '') {
super(`The national code value (${nationalCode}) is not a valid national code.`);
}
}