public enum ResponseStatusCode extends Enum<ResponseStatusCode>
Enum Constant and Description |
---|
REQUEST_ERROR_INVALID_REQUEST_ARGUMENTS
The request message was parseable, but the arguments supplied in the message were in conflict or incomplete.
|
REQUEST_ERROR_MALFORMED_REQUEST
The request message was not properly formatted which means it could not be parsed at all or the "op" code was
not recognized such that Gremlin Server could properly route it for processing.
|
SERVER_ERROR
A general server error occurred that prevented the request from being processed.
|
SERVER_ERROR_SCRIPT_EVALUATION
The script submitted for processing evaluated in the
ScriptEngine with errors and could not be
processed. |
SERVER_ERROR_SERIALIZATION
The server was not capable of serializing an object that was returned from the script supplied on the request.
|
SERVER_ERROR_TIMEOUT
The server exceeded one of the timeout settings for the request and could therefore only partially respond
or not respond at all.
|
SERVER_ERROR_TRAVERSAL_EVALUATION
The remote
Traversal submitted for processing evaluated in on the
server with errors and could not be processed. |
SUCCESS
The server successfully processed a request.
|
SUCCESS_TERMINATOR
The server is terminating a result set successfully.
|
Modifier and Type | Method and Description |
---|---|
static ResponseStatusCode |
getFromValue(int codeValue) |
int |
getValue() |
boolean |
isSuccess() |
static ResponseStatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseStatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseStatusCode SUCCESS
public static final ResponseStatusCode SUCCESS_TERMINATOR
public static final ResponseStatusCode REQUEST_ERROR_MALFORMED_REQUEST
public static final ResponseStatusCode REQUEST_ERROR_INVALID_REQUEST_ARGUMENTS
public static final ResponseStatusCode SERVER_ERROR
public static final ResponseStatusCode SERVER_ERROR_TRAVERSAL_EVALUATION
Traversal
submitted for processing evaluated in on the
server with errors and could not be processed.public static final ResponseStatusCode SERVER_ERROR_SCRIPT_EVALUATION
ScriptEngine
with errors and could not be
processed. Check the script submitted for syntax errors or other problems and then resubmit.public static final ResponseStatusCode SERVER_ERROR_TIMEOUT
public static final ResponseStatusCode SERVER_ERROR_SERIALIZATION
public static ResponseStatusCode[] values()
for (ResponseStatusCode c : ResponseStatusCode.values()) System.out.println(c);
public static ResponseStatusCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ResponseStatusCode getFromValue(int codeValue)
public int getValue()
public boolean isSuccess()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.