Class HonuaTransportException
- Namespace
- Honua.Sdk.Abstractions
- Assembly
- Honua.Sdk.Abstractions.dll
Exception raised when a REST request fails before an HTTP response is available.
public sealed class HonuaTransportException : HonuaException, ISerializable
- Inheritance
-
HonuaTransportException
- Implements
- Inherited Members
Constructors
HonuaTransportException()
Initializes a transport exception with the default message.
public HonuaTransportException()
HonuaTransportException(string)
Initializes a transport exception.
public HonuaTransportException(string message)
Parameters
messagestringA human-readable error message.
HonuaTransportException(string, Exception)
Initializes a transport exception with an inner exception.
public HonuaTransportException(string message, Exception innerException)
Parameters
messagestringA human-readable error message.
innerExceptionExceptionThe underlying transport failure.
HonuaTransportException(string, Exception, int?)
Initializes a transport exception with an optional HTTP status.
public HonuaTransportException(string message, Exception innerException, int? httpStatus = null)
Parameters
messagestringA human-readable error message.
innerExceptionExceptionThe underlying transport failure.
httpStatusint?An HTTP status associated with the failure, if available.
Properties
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?