Interface ICodedTransportFault
- Namespace
- Trellis
- Assembly
- Trellis.Core.dll
A transport fault that carries its own machine-readable code and kind, so a boundary can publish them without knowing which transport produced the failure.
public interface ICodedTransportFault : ITransportFault
- Extension Methods
Remarks
ITransportFault is a marker: Core deliberately knows nothing about HTTP, gRPC, or a message bus. But a fault that has a code and no way to say so forces every boundary to downcast to a transport-specific type, and a boundary that forgets publishes the sentinel while another publishes the real code — the two then disagree about the same failure.
The codes here are outside the ValidationCodes vocabulary. They come from another system, so Error.TransportFault publishes them verbatim rather than normalizing them into a vocabulary their producer never agreed to.
Properties
Code
Gets the machine-readable code for this fault. Published verbatim.
string Code { get; }
Property Value
Kind
Gets the stable slug for this fault's category, used as the wire kind.
string Kind { get; }