java.lang
Class NumberFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
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.
NumberFormatException
public NumberFormatException()
- Create an exception without a message.
NumberFormatException
public NumberFormatException(String s)
- Create an exception with a message.
- Parameters:
s
- the message