Enum Class JSErrorType

java.lang.Object
java.lang.Enum<JSErrorType>
com.oracle.truffle.js.runtime.JSErrorType
All Implemented Interfaces:
PrototypeSupplier, Serializable, Comparable<JSErrorType>, Constable

public enum JSErrorType extends Enum<JSErrorType> implements PrototypeSupplier
  • Enum Constant Details

    • Error

      public static final JSErrorType Error
    • EvalError

      public static final JSErrorType EvalError
      Currently not in use, only there for compatibility with previous versions of the specification ECMA262[15.11.6.1].
    • RangeError

      public static final JSErrorType RangeError
      Indicates a numeric value has exceeded the allowable range ECMA262[15.11.6.2].
    • ReferenceError

      public static final JSErrorType ReferenceError
      Indicate that an invalid reference value has been detected ECMA262[15.11.6.3].
    • SyntaxError

      public static final JSErrorType SyntaxError
      Indicates that a parsing error has occurred ECMA262[15.11.6.4].
    • TypeError

      public static final JSErrorType TypeError
      Indicates the actual type of an operand is different than the expected type ECMA262[15.11.6.5].
    • URIError

      public static final JSErrorType URIError
      Indicates that one of the global URI handling functions was used in a way that is incompatible with its definition ECMA262[15.11.6.6].
    • AggregateError

      public static final JSErrorType AggregateError
    • CompileError

      public static final JSErrorType CompileError
    • LinkError

      public static final JSErrorType LinkError
    • RuntimeError

      public static final JSErrorType RuntimeError
  • Method Details

    • values

      public static JSErrorType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JSErrorType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getIntrinsicDefaultProto

      public JSDynamicObject getIntrinsicDefaultProto(JSRealm realm)
      Specified by:
      getIntrinsicDefaultProto in interface PrototypeSupplier
    • errorTypes

      public static JSErrorType[] errorTypes()