org.apache.cassandra.cql.compiler.common
Enum CompilerErrorMsg

java.lang.Object
  extended by java.lang.Enum<CompilerErrorMsg>
      extended by org.apache.cassandra.cql.compiler.common.CompilerErrorMsg
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CompilerErrorMsg>

public enum CompilerErrorMsg
extends java.lang.Enum<CompilerErrorMsg>

List of error messages thrown by the CQL Compiler


Enum Constant Summary
GENERIC_ERROR
           
INTERNAL_ERROR
           
INVALID_COLUMN_FAMILY
           
INVALID_TABLE
           
INVALID_TYPE
           
TOO_MANY_DIMENSIONS
           
 
Method Summary
 java.lang.String getMsg(org.antlr.runtime.tree.CommonTree tree, java.lang.Object... args)
           
static CompilerErrorMsg valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CompilerErrorMsg[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GENERIC_ERROR

public static final CompilerErrorMsg GENERIC_ERROR

INTERNAL_ERROR

public static final CompilerErrorMsg INTERNAL_ERROR

INVALID_TABLE

public static final CompilerErrorMsg INVALID_TABLE

INVALID_COLUMN_FAMILY

public static final CompilerErrorMsg INVALID_COLUMN_FAMILY

TOO_MANY_DIMENSIONS

public static final CompilerErrorMsg TOO_MANY_DIMENSIONS

INVALID_TYPE

public static final CompilerErrorMsg INVALID_TYPE
Method Detail

values

public static CompilerErrorMsg[] 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 (CompilerErrorMsg c : CompilerErrorMsg.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CompilerErrorMsg 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 name
java.lang.NullPointerException - if the argument is null

getMsg

public java.lang.String getMsg(org.antlr.runtime.tree.CommonTree tree,
                               java.lang.Object... args)


Copyright © 2009 The Apache Software Foundation