Synced
Diagnostic.Constructor
Section titled “Diagnostic.Constructor”
- Creates a neutral diagnostic while keeping protocol, object and file identities distinct.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Diagnostics
Declaration
Section titled “Declaration”public Inno.Core.Diagnostics.Diagnostic.Diagnostic(string code, string message, Inno.Core.Diagnostics.DiagnosticSeverity severity, string? semanticId = null, System.Guid? objectId = null, Inno.Core.Diagnostics.DiagnosticLocation? location = null)Parameters
Section titled “Parameters”Parameter code: The stable issue code within its producer.
Parameter message: The actionable human-readable message.
Parameter severity: The common engine impact classification.
Parameter semanticId: An optional extension or protocol identifier, never interpreted as a file path.
Parameter objectId: An optional persistent object identity, never a runtime handle.
Parameter location: An optional actual source file location.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The code is empty or an object identity is empty.
Exception T:System.ArgumentNullException: The message is null.