/// <summary> /// Creates a new <c>RpcException</c> associated with given status. /// </summary> /// <param name="status">Resulting status of a call.</param> public RpcException(Status status) : this(status, Metadata.Empty, status.ToString()) { }
/// <summary> /// Creates a new <c>RpcException</c> associated with given status and trailing response metadata. /// </summary> /// <param name="status">Resulting status of a call.</param> /// <param name="trailers">Response trailing metadata.</param> public RpcException(Status status, Metadata trailers) : this(status, trailers, status.ToString()) { }
/// <summary> /// Creates a new <c>RpcException</c> associated with given status. /// </summary> /// <param name="status">Resulting status of a call.</param> public RpcException(Status status) : base(status.ToString()) { this.status = status; }
/// <summary> /// Creates a new <c>RpcException</c> associated with given status and trailing response metadata. /// </summary> /// <param name="status">Resulting status of a call.</param> /// <param name="trailers">Response trailing metadata.</param> public RpcException(Status status, Metadata trailers) : base(status.ToString()) { this.status = status; this.trailers = GrpcPreconditions.CheckNotNull(trailers); }
/// <summary> /// Creates a new <c>RpcException</c> associated with given status. /// </summary> /// <param name="status">Resulting status of a call.</param> public RpcException(Status status) : base(status.ToString()) { this.status = status; this.trailers = Metadata.Empty; }
/// <summary> /// Creates a new <c>RpcException</c> associated with given status. /// </summary> /// <param name="status">Resulting status of a call.</param> public RpcException(Status status) : base(status.ToString()) { this.status = status; }
/// <summary> /// Creates a new <c>RpcException</c> associated with given status. /// </summary> /// <param name="status">Resulting status of a call.</param> public RpcException(Status status) : this(status, status.ToString()) { }