Enum Class JSErrorType

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

public enum JSErrorType extends Enum<JSErrorType>
Native ECMAScript Error types.
  • Enum Constant Details

    • Error

      public static final JSErrorType Error
    • EvalError

      public static final JSErrorType EvalError
    • RangeError

      public static final JSErrorType RangeError
    • ReferenceError

      public static final JSErrorType ReferenceError
    • SyntaxError

      public static final JSErrorType SyntaxError
    • TypeError

      public static final JSErrorType TypeError
    • URIError

      public static final JSErrorType URIError
    • AggregateError

      public static final JSErrorType AggregateError
  • 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