Save This Page
Home » openjdk-7 » java » lang » [javadoc | source]
java.lang
public class: NumberFormatException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            java.lang.IllegalArgumentException
               java.lang.NumberFormatException

All Implemented Interfaces:
    Serializable

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.
Field Summary
static final  long serialVersionUID     
Fields inherited from java.lang.RuntimeException:
serialVersionUID
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public NumberFormatException() 
 public NumberFormatException(String s) 
    Constructs a NumberFormatException with the specified detail message.
    Parameters:
    s - the detail message.
Method from java.lang.NumberFormatException Summary:
forInputString
Methods from java.lang.Throwable:
addSuppressed,   fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   getStackTraceDepth,   getStackTraceElement,   getSuppressed,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.lang.NumberFormatException Detail:
 static NumberFormatException forInputString(String s) 
    Factory method for making a NumberFormatException given the specified input which caused the error.