Package com.google.i18n.phonenumbers
Class NumberParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.google.i18n.phonenumbers.NumberParseException
-
- All Implemented Interfaces:
Serializable
public class NumberParseException extends Exception
Generic exception class for errors encountered when parsing phone numbers.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NumberParseException.ErrorType
The reason that a string could not be interpreted as a phone number.
-
Constructor Summary
Constructors Constructor Description NumberParseException(NumberParseException.ErrorType errorType, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumberParseException.ErrorType
getErrorType()
Returns the error type of the exception that has been thrown.String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
NumberParseException
public NumberParseException(NumberParseException.ErrorType errorType, String message)
-
-
Method Detail
-
getErrorType
public NumberParseException.ErrorType getErrorType()
Returns the error type of the exception that has been thrown.
-
-