MCPcopy Create free account
hub / github.com/grpc/grpc-java / cancellationCause

Method cancellationCause

api/src/context/java/io/grpc/Context.java:477–483  ·  view source on GitHub ↗

If a context #isCancelled() then return the cause of the cancellation or null if context was cancelled without a cause. If the context is not yet cancelled will always return null. The cancellation cause is provided for informational purposes only and implementations shou

()

Source from the content-addressed store, hash-verified

475 * should generally assume that it has already been handled and logged properly.
476 */
477 public Throwable cancellationCause() {
478 if (cancellableAncestor == null) {
479 return null;
480 } else {
481 return cancellableAncestor.cancellationCause();
482 }
483 }
484
485 /**
486 * A context may have an associated {@link Deadline} at which it will be automatically cancelled.

Calls

no outgoing calls