public record ZplDiagnostic
Structured message about one command or field of a rendered label. ZplDiagnostic.Code is stable across versions (see DIAGNOSTICS.md); ZplDiagnostic.Message is human-readable and may change.
Constructors
| Signature | Description |
# ZplDiagnostic(string Code, ZplDiagnosticSeverity Severity, string Message, string Command, int Offset = -1, int Line = 0, int Column = 0) | Structured message about one command or field of a rendered label. ZplDiagnostic.Code is stable across versions (see DIAGNOSTICS.md); ZplDiagnostic.Message is human-readable and may change. Code: Stable identifier such as "ZPL1001". · Severity: How serious the problem is. · Message: Human-readable description (identical to the matching entry of ZplRenderResult.Warnings). · Command: Command the message refers to, e.g. "^GF" (empty when unknown). · Offset: Character offset of that command in the ZPL source (-1 when unknown). · Line: 1-based source line (0 when unknown). · Column: 1-based source column (0 when unknown). |
Properties
| Property | Type | Description |
Code { get; init; } | string | Stable identifier such as "ZPL1001". |
Column { get; init; } | int | 1-based source column (0 when unknown). |
Command { get; init; } | string | Command the message refers to, e.g. "^GF" (empty when unknown). |
Line { get; init; } | int | 1-based source line (0 when unknown). |
Message { get; init; } | string | Human-readable description (identical to the matching entry of ZplRenderResult.Warnings). |
Offset { get; init; } | int | Character offset of that command in the ZPL source (-1 when unknown). |
Severity { get; init; } | ZplDiagnosticSeverity | How serious the problem is. |
Methods
| Method Signature | Returns | Description |
# Deconstruct(out string Code, out ZplDiagnosticSeverity Severity, out string Message, out string Command, out int Offset, out int Line, out int Column) | void | |