org.neo4j.server.rest.transactional.error
Enum StatusCode

java.lang.Object
  extended by java.lang.Enum<StatusCode>
      extended by org.neo4j.server.rest.transactional.error.StatusCode
All Implemented Interfaces:
Serializable, Comparable<StatusCode>

public enum StatusCode
extends Enum<StatusCode>


Enum Constant Summary
INTERNAL_BEGIN_TRANSACTION_ERROR
           
INTERNAL_COMMIT_TRANSACTION_ERROR
           
INTERNAL_DATABASE_ERROR
           
INTERNAL_ROLLBACK_TRANSACTION_ERROR
           
INTERNAL_STATEMENT_EXECUTION_ERROR
           
INVALID_CONCURRENT_TRANSACTION_ACCESS
           
INVALID_REQUEST
           
INVALID_REQUEST_FORMAT
           
INVALID_TRANSACTION_ID
           
NETWORK_ERROR
           
STATEMENT_EXECUTION_ERROR
           
STATEMENT_MISSING_PARAMETER_ERROR
           
STATEMENT_SYNTAX_ERROR
           
 
Method Summary
 int getCode()
           
 String getDefaultMessage()
           
 boolean includeStackTrace()
           
static StatusCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StatusCode[] 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

NETWORK_ERROR

public static final StatusCode NETWORK_ERROR

INVALID_REQUEST

public static final StatusCode INVALID_REQUEST

INVALID_REQUEST_FORMAT

public static final StatusCode INVALID_REQUEST_FORMAT

INVALID_TRANSACTION_ID

public static final StatusCode INVALID_TRANSACTION_ID

INVALID_CONCURRENT_TRANSACTION_ACCESS

public static final StatusCode INVALID_CONCURRENT_TRANSACTION_ACCESS

STATEMENT_EXECUTION_ERROR

public static final StatusCode STATEMENT_EXECUTION_ERROR

STATEMENT_SYNTAX_ERROR

public static final StatusCode STATEMENT_SYNTAX_ERROR

STATEMENT_MISSING_PARAMETER_ERROR

public static final StatusCode STATEMENT_MISSING_PARAMETER_ERROR

INTERNAL_DATABASE_ERROR

public static final StatusCode INTERNAL_DATABASE_ERROR

INTERNAL_STATEMENT_EXECUTION_ERROR

public static final StatusCode INTERNAL_STATEMENT_EXECUTION_ERROR

INTERNAL_BEGIN_TRANSACTION_ERROR

public static final StatusCode INTERNAL_BEGIN_TRANSACTION_ERROR

INTERNAL_ROLLBACK_TRANSACTION_ERROR

public static final StatusCode INTERNAL_ROLLBACK_TRANSACTION_ERROR

INTERNAL_COMMIT_TRANSACTION_ERROR

public static final StatusCode INTERNAL_COMMIT_TRANSACTION_ERROR
Method Detail

values

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

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

valueOf

public static StatusCode 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 name
NullPointerException - if the argument is null

getCode

public int getCode()

getDefaultMessage

public String getDefaultMessage()

includeStackTrace

public boolean includeStackTrace()


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.