Class RpcException
- Namespace
- Temporalio.Exceptions
- Assembly
- Temporalio.dll
Exception representing a gRPC failure.
public class RpcException : TemporalException, ISerializable
- Inheritance
-
RpcException
- Implements
- Inherited Members
Constructors
RpcException(StatusCode, string, byte[]?)
Initializes a new instance of the RpcException class.
public RpcException(RpcException.StatusCode code, string message, byte[]? rawStatus)
Parameters
code
RpcException.StatusCodegRPC status code.
message
stringMessage.
rawStatus
byte[]gRPC status as protobuf.
Properties
Code
Gets the gRPC status code of the error.
public RpcException.StatusCode Code { get; }
Property Value
GrpcStatus
Gets a lazily-created gRPC status from the details.
public Lazy<GrpcStatus?> GrpcStatus { get; }
Property Value
RawStatus
Gets the gRPC status message as a protobuf. This may not be set even if GrpcStatus is.
public byte[]? RawStatus { get; }
Property Value
- byte[]