Browse Source

Update exception message to be more clear.

improve-rfc-handling-java
Silvio Brändle 11 months ago
parent
commit
030e32dfdb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java

+ 1
- 1
java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java View File

@ -3233,7 +3233,7 @@ public class PhoneNumberUtil {
if (numberEnd < 0) {
throw new NumberParseException(NumberParseException.ErrorType.NOT_A_NUMBER,
"The string supplied did not seem to be a phone number.");
"The string supplied does not form a valid RFC3966 number.");
}
String numberPart = numberToParse.substring(numberStart, numberEnd);


Loading…
Cancel
Save