Struct ConversionDiagnostic
- Namespace
- DocWright.Core.Diagnostics
- Assembly
- DocWright.Core.dll
A single structured diagnostic emitted during a conversion. Diagnostics carry a stable machine-readable code (see DiagnosticCodes), a severity, a human-readable message and an optional source location (package part and element path).
public readonly struct ConversionDiagnostic : IEquatable<ConversionDiagnostic>
- Implements
- Inherited Members
Constructors
- ConversionDiagnostic(string, DiagnosticSeverity, string, string?)
Initializes a diagnostic.
Properties
- Code
Gets the stable structured code, for example "DXP2001".
- Location
Gets the optional source location (part name and element path).
- Message
Gets the human-readable message.
- Severity
Gets the severity.
Methods
- ToString()
Formats the diagnostic as "CODE Severity: message" with the location appended in parentheses when present. Culture-independent.