com.google.i18n.phonenumbers
Class NumberParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.google.i18n.phonenumbers.NumberParseException
All Implemented Interfaces:
Serializable

public class NumberParseException
extends Exception

Generic exception class for errors encountered when parsing phone numbers.

Author:
Lara Rennie
See Also:
Serialized Form

Nested Class Summary
static class NumberParseException.ErrorType
           
 
Constructor Summary
NumberParseException(NumberParseException.ErrorType errorType, String message)
           
 
Method Summary
 NumberParseException.ErrorType getErrorType()
          Returns the error type of the exception that has been thrown.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.


toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2011 Google. All Rights Reserved.