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 generally indicates the string passed in had less than 3 digits in it. Morespecifically, the number failed to match the regular expression VALID_PHONE_NUMBER inPhoneNumberUtil.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.