Package 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
,Modified
public class NumberFormatException extends IllegalArgumentException
Thrown when an invalid value is passed to a string-to-number conversion method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NumberFormatException()
Constructs a newNumberFormatException
that includes the current stack trace.NumberFormatException(String detailMessage)
Constructs a newNumberFormatException
with the current stack trace and the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
getMessage, printStackTrace, printStackTrace, toString
-
-
-
-
Constructor Detail
-
NumberFormatException
public NumberFormatException()
Constructs a newNumberFormatException
that includes the current stack trace.
-
NumberFormatException
public NumberFormatException(String detailMessage)
Constructs a newNumberFormatException
with the current stack trace and the specified detail message.- Parameters:
detailMessage
- the detail message for this exception.
-
-