java.lang
Class NumberFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.lang.NumberFormatException
- All Implemented Interfaces:
- Serializable
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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NumberFormatException
public NumberFormatException()
- Create an exception without a message.
NumberFormatException
public NumberFormatException(String s)
- Create an exception with a message.
- Parameters:
s
- the message