Package java.lang

Class NumberFormatException

All Implemented Interfaces:
Serializable

public class NumberFormatException
extends IllegalArgumentException
Thrown when an invalid value is passed to a string-to-number conversion method.
See Also:
Serialized Form
  • Constructor Details

    • NumberFormatException

      public NumberFormatException()
      Constructs a new NumberFormatException that includes the current stack trace.
    • NumberFormatException

      public NumberFormatException​(String detailMessage)
      Constructs a new NumberFormatException with the current stack trace and the specified detail message.
      Parameters:
      detailMessage - the detail message for this exception.