Class HonuaGrpcException
Exception thrown when a gRPC call to the Honua server fails.
public sealed class HonuaGrpcException : HonuaException, ISerializable
- Inheritance
-
HonuaGrpcException
- Implements
- Inherited Members
Constructors
HonuaGrpcException()
Creates a new gRPC exception.
public HonuaGrpcException()
HonuaGrpcException(StatusCode, string, Exception?)
Creates a new gRPC exception.
public HonuaGrpcException(StatusCode statusCode, string message, Exception? innerException = null)
Parameters
statusCodeStatusCodeThe gRPC status code.
messagestringThe error detail message.
innerExceptionExceptionThe original exception, if any.
HonuaGrpcException(string)
Creates a new gRPC exception.
public HonuaGrpcException(string message)
Parameters
messagestringThe error detail message.
HonuaGrpcException(string, Exception)
Creates a new gRPC exception.
public HonuaGrpcException(string message, Exception innerException)
Parameters
Properties
FailureReceipt
The normalized machine terminal receipt, when the failure came from a remote protocol.
public override HonuaFailureReceipt? FailureReceipt { get; }
Property Value
HttpStatus
The HTTP status code associated with the failure, normalized to an int, or null for non-HTTP transports (e.g. gRPC) or failures with no status. Lets callers branch on status uniformly without downcasting to a per-protocol exception type.
public override int? HttpStatus { get; }
Property Value
- int?
Remarks
gRPC is not an HTTP transport, so no HTTP status is surfaced; use StatusCode.
ProblemDetails
The RFC 7807 problem document the server returned, or null; protocol-specific detail lives on derived types.
public override HonuaProblemDetails? ProblemDetails { get; }
Property Value
StatusCode
The gRPC status code.
public StatusCode StatusCode { get; }