Synced
Diagnostic.Error
Section titled “Diagnostic.Error”
- Creates an error diagnostic value without publishing it.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Diagnostics
Declaration
Section titled “Declaration”public static Inno.Core.Diagnostics.Diagnostic Inno.Core.Diagnostics.Diagnostic.Error(string code, string message, Inno.Core.Diagnostics.DiagnosticLocation? location = null)Parameters
Section titled “Parameters”Parameter code: The stable producer-defined code, or an empty string when no code is available.
Parameter message: The human-readable diagnostic message.
Parameter location: The related source location, or null when unavailable.
Returns
Section titled “Returns”An immutable error diagnostic that can be supplied to M:Inno.Core.Diagnostics.Diagnostics.Set(System.String,Inno.Core.Diagnostics.Diagnostic).
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when message is null.