Package com.linkedin.venice.grpc
Class GrpcErrorCodes
- java.lang.Object
-
- com.linkedin.venice.grpc.GrpcErrorCodes
-
public class GrpcErrorCodes extends java.lang.Object
We want to define our own error codes/messages for when we receive any sort of exception or error when processing a gRPC request within the gRPC handler pipeline to remain flexible and not bound to the gRPC error codes. We define some constants here to be used within our gRPC service and handlers and our gRPC client is responsible for mapping the gRPC error code to the proper Venice Exception.
-
-
Field Summary
Fields Modifier and Type Field Description static int
BAD_REQUEST
static int
DEADLINE_EXCEEDED
static int
INTERNAL_ERROR
static int
KEY_NOT_FOUND
static int
OK
static int
SERVICE_UNAVAILABLE
static int
TOO_MANY_REQUESTS
-
Constructor Summary
Constructors Constructor Description GrpcErrorCodes()
-
-
-
Field Detail
-
DEADLINE_EXCEEDED
public static final int DEADLINE_EXCEEDED
- See Also:
- Constant Field Values
-
KEY_NOT_FOUND
public static final int KEY_NOT_FOUND
- See Also:
- Constant Field Values
-
OK
public static final int OK
- See Also:
- Constant Field Values
-
BAD_REQUEST
public static final int BAD_REQUEST
- See Also:
- Constant Field Values
-
INTERNAL_ERROR
public static final int INTERNAL_ERROR
- See Also:
- Constant Field Values
-
TOO_MANY_REQUESTS
public static final int TOO_MANY_REQUESTS
- See Also:
- Constant Field Values
-
SERVICE_UNAVAILABLE
public static final int SERVICE_UNAVAILABLE
- See Also:
- Constant Field Values
-
-