Uses of Class
io.grpc.Status
Packages that use Status
Package
Description
The gRPC core public API.
API for gRPC over Protocol Buffers, including tools for serializing and de-serializing protobuf
messages.
-
Uses of Status in io.grpc
Modifier and TypeFieldDescriptionstatic final StatusStatus.ABORTEDThe operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.static final StatusStatus.ALREADY_EXISTSSome entity that we attempted to create (e.g., file or directory) already exists.static final StatusStatus.CANCELLEDThe operation was cancelled (typically by the caller).static final StatusStatus.DATA_LOSSUnrecoverable data loss or corruption.static final StatusStatus.DEADLINE_EXCEEDEDDeadline expired before operation could complete.static final StatusStatus.FAILED_PRECONDITIONOperation was rejected because the system is not in a state required for the operation's execution.static final StatusStatus.INTERNALInternal errors.static final StatusStatus.INVALID_ARGUMENTClient specified an invalid argument.static final StatusStatus.NOT_FOUNDSome requested entity (e.g., file or directory) was not found.static final StatusStatus.OKThe operation completed successfully.static final StatusStatus.OUT_OF_RANGEOperation was attempted past the valid range.static final StatusStatus.PERMISSION_DENIEDThe caller does not have permission to execute the specified operation.static final StatusStatus.RESOURCE_EXHAUSTEDSome resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.static final StatusStatus.UNAUTHENTICATEDThe request does not have valid authentication credentials for the operation.static final StatusStatus.UNAVAILABLEThe service is currently unavailable.static final StatusStatus.UNIMPLEMENTEDOperation is not implemented or not supported/enabled in this service.static final StatusStatus.UNKNOWNUnknown error.Modifier and TypeFieldDescriptionstatic final Metadata.Key<Status>InternalStatus.CODE_KEYKey to bind status code to trailing metadata.Modifier and TypeMethodDescriptionLoadBalancer.acceptResolvedAddresses(LoadBalancer.ResolvedAddresses resolvedAddresses) Accepts newly resolved addresses from the name resolution system.Status.augmentDescription(String additionalDetail) Create a derived instance ofStatusaugmenting the current description with additional detail.static StatusStatus.fromCode(Status.Code code) Return aStatusgiven a canonical errorStatus.Codeobject.static StatusStatus.fromCodeValue(int codeValue) Return aStatusgiven a canonical errorStatus.Codevalue.static StatusStatus.fromThrowable(Throwable t) NameResolver.ConfigOrError.getError()Returns error status if exists, otherwise null.ConnectivityStateInfo.getStatus()Returns the status associated with the state.InternalConfigSelector.Result.getStatus()Returns the status of the config selection operation.LoadBalancer.PickResult.getStatus()The status associated with this result.final StatusStatusException.getStatus()Returns the status code as aStatusobject.final StatusStatusRuntimeException.getStatus()Returns the status code as aStatusobject.static StatusContexts.statusFromCancelled(Context context) Returns theStatusof a cancelled context ornullif the context is not cancelled.Status.Code.toStatus()Returns aStatusobject corresponding to this status code.Create a derived instance ofStatuswith the given cause.Status.withDescription(String description) Create a derived instance ofStatuswith the given description.Modifier and TypeMethodDescriptionstatic final StatusRuntimeExceptionInternalStatus.asRuntimeException(Status status, Metadata trailers, boolean fillInStackTrace) Create a newStatusRuntimeExceptionwith the internal option of skipping the filling of the stack trace.abstract voidClose the call with the provided status.abstract voidCalled when there has been an error when preparing the headers.Creates aResultwith the given error status.static ConnectivityStateInfoConnectivityStateInfo.forTransientFailure(Status error) Returns an instance forTRANSIENT_FAILURE, associated with an error status.static NameResolver.ConfigOrErrorReturns aNameResolver.ConfigOrErrorfor the failure to parse the config.abstract voidLoadBalancer.handleNameResolutionError(Status error) Handles an error from the name resolution system.voidThe ClientCall has been closed.voidHandles an error from the resolver.abstract voidHandles a name resolving error from the resolver.voidStreamTracer.streamClosed(Status status) Stream is closed.static LoadBalancer.PickResultA decision to fail an RPC immediately.static LoadBalancer.PickResultA decision to report a connectivity error to the RPC.ModifierConstructorDescriptionErrorPicker(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 both 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 StatusModifier and TypeMethodDescriptionstatic com.google.rpc.StatusStatusProto.fromStatusAndTrailers(Status status, Metadata trailers) Extracts thegoogle.rpc.Statusfrom trailers, and makes sure they match the gRPCstatus.