public enum JsonRpcError extends Enum<JsonRpcError>
| Enum Constant and Description |
|---|
INTERNAL_ERROR |
INVALID_PARAMS |
INVALID_REQUEST |
METHOD_NOT_FOUND |
PARSE_ERROR |
SERVER_ERROR |
| Modifier and Type | Method and Description |
|---|---|
Error |
toError(Request request,
ExceptionUnwrapFilter exceptionUnwrapFilter) |
Error |
toError(Throwable e,
Map<String,Object> data,
Request request,
ExceptionUnwrapFilter exceptionUnwrapFilter) |
Error |
toError(Throwable e,
Request request,
ExceptionUnwrapFilter exceptionUnwrapFilter) |
static JsonRpcError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonRpcError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonRpcError PARSE_ERROR
public static final JsonRpcError INVALID_REQUEST
public static final JsonRpcError METHOD_NOT_FOUND
public static final JsonRpcError INVALID_PARAMS
public static final JsonRpcError INTERNAL_ERROR
public static final JsonRpcError SERVER_ERROR
public static JsonRpcError[] values()
for (JsonRpcError c : JsonRpcError.values()) System.out.println(c);
public static JsonRpcError 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 Error toError(Request request, ExceptionUnwrapFilter exceptionUnwrapFilter)
public Error toError(Throwable e, Request request, ExceptionUnwrapFilter exceptionUnwrapFilter)
Copyright © 2018. All rights reserved.