zplCore.comzplCore.com
record9 members

ZplDiagnostic

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

SignatureDescription
# 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

PropertyTypeDescription
Code { get; init; }stringStable identifier such as "ZPL1001".
Column { get; init; }int1-based source column (0 when unknown).
Command { get; init; }stringCommand the message refers to, e.g. "^GF" (empty when unknown).
Line { get; init; }int1-based source line (0 when unknown).
Message { get; init; }stringHuman-readable description (identical to the matching entry of ZplRenderResult.Warnings).
Offset { get; init; }intCharacter offset of that command in the ZPL source (-1 when unknown).
Severity { get; init; }ZplDiagnosticSeverityHow serious the problem is.

Methods

Method SignatureReturnsDescription
# Deconstruct(out string Code, out ZplDiagnosticSeverity Severity, out string Message, out string Command, out int Offset, out int Line, out int Column)void