Enum ErrorType
- Namespace
- PhoneNumbers
- Assembly
- PhoneNumbers.dll
The reason that a string could not be interpreted as a phone number.
public enum ErrorType
Fields
INVALID_COUNTRY_CODE = 0The country code supplied did not belong to a supported country or non-geographical entity.
NOT_A_NUMBER = 1This indicates the string passed is not a valid number. Either the string had less than 3 digits in it or had an invalid phone-context parameter. More specifically, the number failed to match the regular expression VALID_PHONE_NUMBER, RFC3966_GLOBAL_NUMBER_DIGITS, or RFC3966_DOMAINNAME in PhoneNumberUtil.cs.
TOO_LONG = 4TOO_SHORT_AFTER_IDD = 2TOO_SHORT_NSN = 3