Package 

Enum NumberParseException.ErrorType

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Comparable

    
    public enum NumberParseException.ErrorType
    
                        

    The reason that a string could not be interpreted as a phone number.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      INVALID_COUNTRY_CODE

      The country code supplied did not belong to a supported country or non-geographical entity.

      NOT_A_NUMBER

      This 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_IDD

      This 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_NSN

      This indicates the string, after any country code has been stripped, had less digits than anyvalid phone number could have.

      TOO_LONG

      This indicates the string had more digits than any valid phone number could have.