Class NumberParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.michaelrocks.libphonenumber.android.NumberParseException
-
- All Implemented Interfaces:
java.io.Serializable
public class NumberParseException extends java.lang.ExceptionGeneric exception class for errors encountered when parsing phone numbers.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNumberParseException.ErrorTypeThe reason that a string could not be interpreted as a phone number.
-
Constructor Summary
Constructors Constructor Description NumberParseException(NumberParseException.ErrorType errorType, java.lang.String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumberParseException.ErrorTypegetErrorType()Returns the error type of the exception that has been thrown.java.lang.StringtoString()
-
-
-
Constructor Detail
-
NumberParseException
public NumberParseException(NumberParseException.ErrorType errorType, java.lang.String message)
-
-
Method Detail
-
getErrorType
public NumberParseException.ErrorType getErrorType()
Returns the error type of the exception that has been thrown.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-