Class TruffleString.NumberFormatException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.oracle.truffle.api.strings.TruffleString.NumberFormatException
All Implemented Interfaces:
Serializable
Enclosing class:
TruffleString

public static final class TruffleString.NumberFormatException extends Exception
This exception may be thrown by TruffleString.ParseIntNode, TruffleString.ParseLongNode or TruffleString.ParseDoubleNode to indicate that the given string cannot be parsed as an integer, long or double value. This exception does not record stack traces for performance reasons.
Since:
22.1
See Also:
  • Method Details

    • getMessage

      public String getMessage()
      Returns a detailed error message. Not designed to be used on fast paths.
      Overrides:
      getMessage in class Throwable
      Since:
      22.3
    • fillInStackTrace

      public Throwable fillInStackTrace()
      No stack trace for this exception.
      Overrides:
      fillInStackTrace in class Throwable
      Since:
      22.1