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 StatusStatus. ABORTEDThe operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.static StatusStatus. ALREADY_EXISTSSome entity that we attempted to create (e.g., file or directory) already exists.static StatusStatus. CANCELLEDThe operation was cancelled (typically by the caller).static StatusStatus. DATA_LOSSUnrecoverable data loss or corruption.static StatusStatus. DEADLINE_EXCEEDEDDeadline expired before operation could complete.static StatusStatus. FAILED_PRECONDITIONOperation was rejected because the system is not in a state required for the operation's execution.static StatusStatus. INTERNALInternal errors.static StatusStatus. INVALID_ARGUMENTClient specified an invalid argument.static StatusStatus. NOT_FOUNDSome requested entity (e.g., file or directory) was not found.static StatusStatus. OKThe operation completed successfully.static StatusStatus. OUT_OF_RANGEOperation was attempted past the valid range.static StatusStatus. PERMISSION_DENIEDThe caller does not have permission to execute the specified operation.static StatusStatus. RESOURCE_EXHAUSTEDSome resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.static StatusStatus. UNAUTHENTICATEDThe request does not have valid authentication credentials for the operation.static StatusStatus. UNAVAILABLEThe service is currently unavailable.static StatusStatus. UNIMPLEMENTEDOperation is not implemented or not supported/enabled in this service.static StatusStatus. UNKNOWNUnknown error.Methods in io.grpc that return Status Modifier and Type Method Description StatusLoadBalancer. acceptResolvedAddresses(LoadBalancer.ResolvedAddresses resolvedAddresses)Accepts newly resolved addresses from the name resolution system.StatusStatus. 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)StatusNameResolver.ConfigOrError. getError()Returns error status if exists, otherwise null.StatusConnectivityStateInfo. getStatus()Returns the status associated with the state.StatusLoadBalancer.PickResult. getStatus()The status associated with this result.StatusStatusException. getStatus()Returns the status code as aStatusobject.StatusStatusOr. getStatus()Returns the status.StatusStatusRuntimeException. getStatus()Returns the status code as aStatusobject.StatusNameResolver.Listener2. onResult2(NameResolver.ResolutionResult resolutionResult)Handles updates on resolved addresses and attributes.static StatusContexts. statusFromCancelled(Context context)Returns theStatusof a cancelled context ornullif the context is not cancelled.StatusStatus.Code. toStatus()Returns aStatusobject corresponding to this status code.StatusStatus. withCause(Throwable cause)Create a derived instance ofStatuswith the given cause.StatusStatus. withDescription(String description)Create a derived instance ofStatuswith the given description.Methods in io.grpc with parameters of type Status Modifier and Type Method Description abstract voidServerCall. close(Status status, Metadata trailers)Close the call with the provided status.abstract voidCallCredentials.MetadataApplier. fail(Status status)Called when there has been an error when preparing the headers.static ConnectivityStateInfoConnectivityStateInfo. forTransientFailure(Status error)Returns an instance forTRANSIENT_FAILURE, associated with an error status.static NameResolver.ConfigOrErrorNameResolver.ConfigOrError. fromError(Status status)Returns aNameResolver.ConfigOrErrorfor the failure to parse the config.static <T> StatusOr<T>StatusOr. fromStatus(Status status)Construct from a non-Ok status.abstract voidLoadBalancer. handleNameResolutionError(Status error)Handles an error from the name resolution system.voidClientCall.Listener. onClose(Status status, Metadata trailers)The ClientCall has been closed.voidNameResolver.Listener. onError(Status error)Handles an error from the resolver.abstract voidNameResolver.Listener2. onError(Status error)Handles a name resolving error from the resolver.voidStreamTracer. streamClosed(Status status)Stream is closed.static LoadBalancer.PickResultLoadBalancer.PickResult. withDrop(Status status)A decision to fail an RPC immediately.static LoadBalancer.PickResultLoadBalancer.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.StatusStatusProto. fromStatusAndTrailers(Status status, Metadata trailers)Extracts thegoogle.rpc.Statusfrom 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 StatusGracefulSwitchLoadBalancer. acceptResolvedAddresses(LoadBalancer.ResolvedAddresses resolvedAddresses)Methods in io.grpc.util with parameters of type Status Modifier and Type Method Description voidForwardingLoadBalancer. handleNameResolutionError(Status error)voidForwardingClientStreamTracer. streamClosed(Status status)
-