Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class NumberFormatException

Constructors

public  class  java.lang.NumberFormatException
    extends  java.lang.IllegalArgumentException  
{
        // Constructors
    public NumberFormatException();	
    public NumberFormatException(String  s);	
}

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.

ParameterDescription
s the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.