Class GrpcExceptions
- Namespace
- GrpcAssertions
- Assembly
- GrpcAssertions.dll
Framework-agnostic predicates over gRPC exceptions. The v0.0.1 surface is intentionally
minimal: it establishes the package, the Grpc.Core.Api dependency, and the quality bar.
The full gRPC outcome-assertion surface (the GrpcCallBuilder test infrastructure plus the
ThrowsGrpcException verbs and StatusCode shorthands) ships in v0.1.0.
public static class GrpcExceptions
- Inheritance
-
GrpcExceptions
- Inherited Members
Methods
IsRpcException(Exception?)
Returns true when exception is a gRPC
RpcException (the exception type a failed gRPC call surfaces). Returns
false for null and for any other exception type.
public static bool IsRpcException(Exception? exception)
Parameters
Returns
- bool
true when
exceptionis an RpcException.