Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Creates a neutral diagnostic while keeping protocol, object and file identities distinct.

API: engine
Project: Inno.Core.Diagnostics

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)

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.

Exception T:System.ArgumentException: The code is empty or an object identity is empty.

Exception T:System.ArgumentNullException: The message is null.