Table of Contents

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.StatusCode

gRPC status code.

message string

Message.

rawStatus byte[]

gRPC status as protobuf.

Properties

Code

Gets the gRPC status code of the error.

public RpcException.StatusCode Code { get; }

Property Value

RpcException.StatusCode

GrpcStatus

Gets a lazily-created gRPC status from the details.

public Lazy<GrpcStatus?> GrpcStatus { get; }

Property Value

Lazy<GrpcStatus>

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[]