Enum ErrorType
- java.lang.Object
-
- java.lang.Enum<ErrorType>
-
- org.cqframework.cql.elm.execution.ErrorType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ErrorType>
public enum ErrorType extends java.lang.Enum<ErrorType>
Java class for ErrorType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ErrorType"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="environment"/> <enumeration value="syntax"/> <enumeration value="include"/> <enumeration value="semantic"/> <enumeration value="internal"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENVIRONMENTAn error with the environment in which the translator is running.INCLUDEAn included CQL library could not be loaded.INTERNALAn unexpected error in the translator.SEMANTICAny kind of semantic error with the CQL.SYNTAXAny kind of syntax error with the CQL.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorTypefromValue(java.lang.String v)java.lang.Stringvalue()static ErrorTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ErrorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENVIRONMENT
public static final ErrorType ENVIRONMENT
An error with the environment in which the translator is running.
-
SYNTAX
public static final ErrorType SYNTAX
Any kind of syntax error with the CQL. These errors can be addressed by correcting the error in the input CQL.
-
INCLUDE
public static final ErrorType INCLUDE
An included CQL library could not be loaded. These errors can be addressed by correcting the error condition for the referenced library.
-
SEMANTIC
public static final ErrorType SEMANTIC
Any kind of semantic error with the CQL. These errors can be addressed by correcting the error in the input CQL.
-
INTERNAL
public static final ErrorType INTERNAL
An unexpected error in the translator. These errors should be reported as issues to the translator tooling support team.
-
-
Method Detail
-
values
public static ErrorType[] 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 (ErrorType c : ErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
value
public java.lang.String value()
-
fromValue
public static ErrorType fromValue(java.lang.String v)
-
-