Class Error.TransportFault
- Namespace
- Trellis
- Assembly
- Trellis.Core.dll
Opaque envelope for transport-specific lower-layer failure payloads produced outside
Trellis.Core. Domain code does not inspect the payload; the boundary layer that
understands the transport is responsible for translation. The wrapped payload must
implement ITransportFault.
public sealed record Error.TransportFault : Error, IEquatable<Error>, IEquatable<Error.TransportFault>
- Inheritance
-
Error.TransportFault
- Implements
- Inherited Members
- Extension Methods
Remarks
A bare ITransportFault is opaque and contributes no code; only an
ICodedTransportFault can say what its code is, and it is read once at
construction. Replacing Fault through a with expression therefore does
not re-derive Code — build a new Error.TransportFault instead.
Constructors
TransportFault(ITransportFault)
Opaque envelope for transport-specific lower-layer failure payloads produced outside
Trellis.Core. Domain code does not inspect the payload; the boundary layer that
understands the transport is responsible for translation. The wrapped payload must
implement ITransportFault.
public TransportFault(ITransportFault Fault)
Parameters
FaultITransportFaultTransport-layer fault payload defined in a transport-specific package.
Remarks
A bare ITransportFault is opaque and contributes no code; only an
ICodedTransportFault can say what its code is, and it is read once at
construction. Replacing Fault through a with expression therefore does
not re-derive Code — build a new Error.TransportFault instead.
Properties
Fault
Transport-layer fault payload defined in a transport-specific package.
public ITransportFault Fault { get; init; }
Property Value
Kind
Gets the stable domain slug for this case (e.g. "not-found",
"invalid-input"). Suitable for telemetry, observability dimensions, and as
the durable identifier that boundary layers translate into transport-specific
type identifiers.
public override string Kind { get; }