Gets optional structured diagnostic information associated with this exception.
public CommandDiagnostic? Diagnostic { get; init; }