com.almende.eve.rpc.jsonrpc
Enum JSONRPCException.CODE

java.lang.Object
  extended by java.lang.Enum<JSONRPCException.CODE>
      extended by com.almende.eve.rpc.jsonrpc.JSONRPCException.CODE
All Implemented Interfaces:
Serializable, Comparable<JSONRPCException.CODE>
Enclosing class:
JSONRPCException

public static enum JSONRPCException.CODE
extends Enum<JSONRPCException.CODE>


Enum Constant Summary
INTERNAL_ERROR
           
INVALID_PARAMS
           
INVALID_REQUEST
           
METHOD_NOT_FOUND
           
NOT_FOUND
           
PARSE_ERROR
           
UNKNOWN_ERROR
           
 
Method Summary
static JSONRPCException.CODE valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JSONRPCException.CODE[] 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

UNKNOWN_ERROR

public static final JSONRPCException.CODE UNKNOWN_ERROR

PARSE_ERROR

public static final JSONRPCException.CODE PARSE_ERROR

INVALID_REQUEST

public static final JSONRPCException.CODE INVALID_REQUEST

METHOD_NOT_FOUND

public static final JSONRPCException.CODE METHOD_NOT_FOUND

INVALID_PARAMS

public static final JSONRPCException.CODE INVALID_PARAMS

INTERNAL_ERROR

public static final JSONRPCException.CODE INTERNAL_ERROR

NOT_FOUND

public static final JSONRPCException.CODE NOT_FOUND
Method Detail

values

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

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

valueOf

public static JSONRPCException.CODE 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


Copyright © 2013 Almende BV. All Rights Reserved.