public enum GrpcError extends Enum<GrpcError>
GrpcStatus
elements.Enum Constant and Description |
---|
CANCELLED |
INTERNAL |
PERMISSION_DENIED |
RESOURCE_EXHAUSTED |
UNAVAILABLE |
Modifier and Type | Field and Description |
---|---|
long |
http2ResetCode |
GrpcStatus |
status |
Modifier and Type | Method and Description |
---|---|
static GrpcError |
mapHttp2ErrorCode(long code)
Map the HTTP/2 code to the gRPC error.
|
static GrpcError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrpcError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrpcError INTERNAL
public static final GrpcError UNAVAILABLE
public static final GrpcError CANCELLED
public static final GrpcError RESOURCE_EXHAUSTED
public static final GrpcError PERMISSION_DENIED
public final GrpcStatus status
public final long http2ResetCode
public static GrpcError[] values()
for (GrpcError c : GrpcError.values()) System.out.println(c);
public static GrpcError 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 GrpcError mapHttp2ErrorCode(long code)
code
- the HTTP/2 codenull
when none appliesCopyright © 2024 Eclipse. All rights reserved.