Packages  This Package  Prev  Next  Index  

§1.41 Class NumberFormatException

public  class  java.lang.NumberFormatException
    extends  java.lang.IllegalArgumentException  (I-§1.32)
{
        // Constructors
    public NumberFormatException();	§1.41.1
    public NumberFormatException(String  s);	§1.41.2
}
Thrown to indicate that the application has attempted to convert a string to one of the numeric types, but that the string does not have the appropriate format.


Constructors

NumberFormatException

public NumberFormatException()
Constructs a NumberFormatException with no detail message.

NumberFormatException

public NumberFormatException(String s)
Constructs a NumberFormatException with the specified detail message.
Parameters:
s - the detail message

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com