Constructor ConversionDiagnostic
- Namespace
- DocWright.Core.Diagnostics
- Assembly
- DocWright.Core.dll
ConversionDiagnostic(string, DiagnosticSeverity, string, string?)
Initializes a diagnostic.
public ConversionDiagnostic(string code, DiagnosticSeverity severity, string message, string? location = null)
Parameters
codestringThe stable structured code, for example "DXP2001".
severityDiagnosticSeverityThe severity.
messagestringThe human-readable message.
locationstringThe optional source location (part name and element path).
Exceptions
- ArgumentNullException
codeormessageis null.