The exception a reader throws for a Diagnostic: in strict mode for the first deviation found, and in either mode when the file cannot be read at all.
public sealed class DiagnosticException : FormatException, ISerializable
The Diagnostic carries the code, offset and object of the deviation.
kind:method, kind:property, kind:ctor. Press Esc to clear.DiagnosticException()Initializes a new instance of the DiagnosticException class with an unspecified diagnostic.DiagnosticException(Diagnostic)Initializes a new instance of the DiagnosticException class for a diagnostic.DiagnosticException(String?, Exception?)Initializes a new instance of the DiagnosticException class with an unspecified diagnostic.DiagnosticException(String?)Initializes a new instance of the DiagnosticException class with an unspecified diagnostic.DiagnosticGets the deviation that stopped reading.