-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum NumberParseException.ErrorTypeThe reason that a string could not be interpreted as a phone number.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_COUNTRY_CODEThe country code supplied did not belong to a supported country or non-geographical entity.
NOT_A_NUMBERThis indicates the string passed is not a valid number. Either the string had less than 3digits in it or had an invalid phone-context parameter. More specifically, the number failedto match the regular expression VALID_PHONE_NUMBER, RFC3966_GLOBAL_NUMBER_DIGITS, orRFC3966_DOMAINNAME in PhoneNumberUtil.java.
TOO_SHORT_AFTER_IDDThis indicates the string started with an international dialing prefix, but after this wasstripped from the number, had less digits than any valid phone number (including countrycode) could have.
TOO_SHORT_NSNThis indicates the string, after any country code has been stripped, had less digits than anyvalid phone number could have.
TOO_LONGThis indicates the string had more digits than any valid phone number could have.
-
Method Summary
Modifier and Type Method Description static Array<NumberParseException.ErrorType>values()static NumberParseException.ErrorTypevalueOf(String name)-
-
Method Detail
-
values
static Array<NumberParseException.ErrorType> values()
-
valueOf
static NumberParseException.ErrorType valueOf(String name)
-
-
-
-