java.lang
Class NumberFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by java.lang.NumberFormatException

public class NumberFormatException
extends IllegalArgumentException

Can be thrown when attempting to convert a String to one of the numeric types, but the operation fails because the string has the wrong format.


Constructor Summary
NumberFormatException()
          Create an exception without a message.
NumberFormatException(String s)
          Create an exception with a message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberFormatException

public NumberFormatException()
Create an exception without a message.


NumberFormatException

public NumberFormatException(String s)
Create an exception with a message.

Parameters:
s - the message