Uses of Class
io.grpc.Status
-
Packages that use Status Package Description io.grpc The gRPC core public API.io.grpc.protobuf API for gRPC over Protocol Buffers, including tools for serializing and de-serializing protobuf messages.io.grpc.util Utilities with advanced features in the core layer that user can optionally use. -
-
Uses of Status in io.grpc
Fields in io.grpc declared as Status Modifier and Type Field Description static Status
Status. ABORTED
The operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.static Status
Status. ALREADY_EXISTS
Some entity that we attempted to create (e.g., file or directory) already exists.static Status
Status. CANCELLED
The operation was cancelled (typically by the caller).static Status
Status. DATA_LOSS
Unrecoverable data loss or corruption.static Status
Status. DEADLINE_EXCEEDED
Deadline expired before operation could complete.static Status
Status. FAILED_PRECONDITION
Operation was rejected because the system is not in a state required for the operation's execution.static Status
Status. INTERNAL
Internal errors.static Status
Status. INVALID_ARGUMENT
Client specified an invalid argument.static Status
Status. NOT_FOUND
Some requested entity (e.g., file or directory) was not found.static Status
Status. OK
The operation completed successfully.static Status
Status. OUT_OF_RANGE
Operation was attempted past the valid range.static Status
Status. PERMISSION_DENIED
The caller does not have permission to execute the specified operation.static Status
Status. RESOURCE_EXHAUSTED
Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.static Status
Status. UNAUTHENTICATED
The request does not have valid authentication credentials for the operation.static Status
Status. UNAVAILABLE
The service is currently unavailable.static Status
Status. UNIMPLEMENTED
Operation is not implemented or not supported/enabled in this service.static Status
Status. UNKNOWN
Unknown error.Methods in io.grpc that return Status Modifier and Type Method Description Status
LoadBalancer. acceptResolvedAddresses(LoadBalancer.ResolvedAddresses resolvedAddresses)
Accepts newly resolved addresses from the name resolution system.Status
Status. augmentDescription(String additionalDetail)
Create a derived instance ofStatus
augmenting the current description with additional detail.static Status
Status. fromCode(Status.Code code)
Return aStatus
given a canonical errorStatus.Code
object.static Status
Status. fromCodeValue(int codeValue)
Return aStatus
given a canonical errorStatus.Code
value.static Status
Status. fromThrowable(Throwable t)
Status
NameResolver.ConfigOrError. getError()
Returns error status if exists, otherwise null.Status
ConnectivityStateInfo. getStatus()
Returns the status associated with the state.Status
LoadBalancer.PickResult. getStatus()
The status associated with this result.Status
StatusException. getStatus()
Returns the status code as aStatus
object.Status
StatusOr. getStatus()
Returns the status.Status
StatusRuntimeException. getStatus()
Returns the status code as aStatus
object.Status
NameResolver.Listener2. onResult2(NameResolver.ResolutionResult resolutionResult)
Handles updates on resolved addresses and attributes.static Status
Contexts. statusFromCancelled(Context context)
Returns theStatus
of a cancelled context ornull
if the context is not cancelled.Status
Status.Code. toStatus()
Returns aStatus
object corresponding to this status code.Status
Status. withCause(Throwable cause)
Create a derived instance ofStatus
with the given cause.Status
Status. withDescription(String description)
Create a derived instance ofStatus
with the given description.Methods in io.grpc with parameters of type Status Modifier and Type Method Description abstract void
ServerCall. close(Status status, Metadata trailers)
Close the call with the provided status.abstract void
CallCredentials.MetadataApplier. fail(Status status)
Called when there has been an error when preparing the headers.static ConnectivityStateInfo
ConnectivityStateInfo. forTransientFailure(Status error)
Returns an instance forTRANSIENT_FAILURE
, associated with an error status.static NameResolver.ConfigOrError
NameResolver.ConfigOrError. fromError(Status status)
Returns aNameResolver.ConfigOrError
for the failure to parse the config.static <T> StatusOr<T>
StatusOr. fromStatus(Status status)
Construct from a non-Ok status.abstract void
LoadBalancer. handleNameResolutionError(Status error)
Handles an error from the name resolution system.void
ClientCall.Listener. onClose(Status status, Metadata trailers)
The ClientCall has been closed.void
NameResolver.Listener. onError(Status error)
Handles an error from the resolver.abstract void
NameResolver.Listener2. onError(Status error)
Handles a name resolving error from the resolver.void
StreamTracer. streamClosed(Status status)
Stream is closed.static LoadBalancer.PickResult
LoadBalancer.PickResult. withDrop(Status status)
A decision to fail an RPC immediately.static LoadBalancer.PickResult
LoadBalancer.PickResult. withError(Status error)
A decision to report a connectivity error to the RPC.Constructors in io.grpc with parameters of type Status Constructor Description ErrorPicker(Status error)
Deprecated.StatusException(Status status)
Constructs an exception with both a status.StatusException(Status status, Metadata trailers)
Constructs an exception with both a status and trailers.StatusRuntimeException(Status status)
Constructs the exception with a status.StatusRuntimeException(Status status, Metadata trailers)
Constructs the exception with both a status and trailers. -
Uses of Status in io.grpc.protobuf
Methods in io.grpc.protobuf with parameters of type Status Modifier and Type Method Description static com.google.rpc.Status
StatusProto. fromStatusAndTrailers(Status status, Metadata trailers)
Extracts thegoogle.rpc.Status
from trailers, and makes sure they match the gRPCstatus
. -
Uses of Status in io.grpc.util
Methods in io.grpc.util that return Status Modifier and Type Method Description Status
GracefulSwitchLoadBalancer. acceptResolvedAddresses(LoadBalancer.ResolvedAddresses resolvedAddresses)
Methods in io.grpc.util with parameters of type Status Modifier and Type Method Description void
ForwardingLoadBalancer. handleNameResolutionError(Status error)
void
ForwardingClientStreamTracer. streamClosed(Status status)
-