Package net.hydromatic.morel.eval
Enum Codes.BuiltInExn
- java.lang.Object
-
- java.lang.Enum<Codes.BuiltInExn>
-
- net.hydromatic.morel.eval.Codes.BuiltInExn
-
- All Implemented Interfaces:
Serializable,Comparable<Codes.BuiltInExn>
- Enclosing class:
- Codes
public static enum Codes.BuiltInExn extends Enum<Codes.BuiltInExn>
Definitions of Morel built-in exceptions.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateBuiltInExn(String structure, String mlName)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Codes.BuiltInExnvalueOf(String name)Returns the enum constant of this type with the specified name.static Codes.BuiltInExn[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMPTY
public static final Codes.BuiltInExn EMPTY
-
BIND
public static final Codes.BuiltInExn BIND
-
DIV
public static final Codes.BuiltInExn DIV
-
DOMAIN
public static final Codes.BuiltInExn DOMAIN
-
OPTION
public static final Codes.BuiltInExn OPTION
-
OVERFLOW
public static final Codes.BuiltInExn OVERFLOW
-
ERROR
public static final Codes.BuiltInExn ERROR
-
SIZE
public static final Codes.BuiltInExn SIZE
-
SUBSCRIPT
public static final Codes.BuiltInExn SUBSCRIPT
-
UNORDERED
public static final Codes.BuiltInExn UNORDERED
-
-
Method Detail
-
values
public static Codes.BuiltInExn[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Codes.BuiltInExn c : Codes.BuiltInExn.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Codes.BuiltInExn valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-