-
- All Implemented Interfaces:
-
java.io.Serializable
public class NumberParseException extends Exception
Generic exception class for errors encountered when parsing phone numbers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumNumberParseException.ErrorTypeThe reason that a string could not be interpreted as a phone number.
-
Field Summary
Fields Modifier and Type Field Description private NumberParseException.ErrorTypeerrorType
-
Constructor Summary
Constructors Constructor Description NumberParseException(NumberParseException.ErrorType errorType, String message)
-
Method Summary
Modifier and Type Method Description NumberParseException.ErrorTypegetErrorType()Returns the error type of the exception that has been thrown. StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
NumberParseException
NumberParseException(NumberParseException.ErrorType errorType, String message)
-
-
Method Detail
-
getErrorType
NumberParseException.ErrorType getErrorType()
Returns the error type of the exception that has been thrown.
-
-
-
-