Table of Contents

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

code string

The stable structured code, for example "DXP2001".

severity DiagnosticSeverity

The severity.

message string

The human-readable message.

location string

The optional source location (part name and element path).

Exceptions

ArgumentNullException

code or message is null.