public static enum GrpcUtil.ErrorType extends Enum<GrpcUtil.ErrorType>
GraknException that can be thrown during gRPC calls.| Enum Constant and Description |
|---|
GRAKN_BACKEND_EXCEPTION |
GRAKN_SERVER_EXCEPTION |
GRAKN_TX_OPERATION_EXCEPTION |
GRAQL_QUERY_EXCEPTION |
GRAQL_SYNTAX_EXCEPTION |
INVALID_KB_EXCEPTION |
PROPERTY_NOT_UNIQUE_EXCEPTION |
TEMPORARY_WRITE_EXCEPTION |
UNKNOWN |
| Modifier and Type | Field and Description |
|---|---|
static io.grpc.Metadata.Key<GrpcUtil.ErrorType> |
KEY |
| Modifier and Type | Method and Description |
|---|---|
GraknException |
toException(String message) |
static GrpcUtil.ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrpcUtil.ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrpcUtil.ErrorType GRAQL_QUERY_EXCEPTION
public static final GrpcUtil.ErrorType GRAQL_SYNTAX_EXCEPTION
public static final GrpcUtil.ErrorType GRAKN_TX_OPERATION_EXCEPTION
public static final GrpcUtil.ErrorType TEMPORARY_WRITE_EXCEPTION
public static final GrpcUtil.ErrorType GRAKN_SERVER_EXCEPTION
public static final GrpcUtil.ErrorType PROPERTY_NOT_UNIQUE_EXCEPTION
public static final GrpcUtil.ErrorType INVALID_KB_EXCEPTION
public static final GrpcUtil.ErrorType GRAKN_BACKEND_EXCEPTION
public static final GrpcUtil.ErrorType UNKNOWN
public static final io.grpc.Metadata.Key<GrpcUtil.ErrorType> KEY
public static GrpcUtil.ErrorType[] values()
for (GrpcUtil.ErrorType c : GrpcUtil.ErrorType.values()) System.out.println(c);
public static GrpcUtil.ErrorType 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 final GraknException toException(String message)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.