EHPDFValidationError Class
The typed exception raised when a validation request cannot produce a decision and the failure carries a precise source location
EHPDFValidationError = class(Exception)
private
FLocation: THPDFValidationSourceLocation;
public
constructor CreateAt(const MessageText: string;
const ALocation: THPDFValidationSourceLocation);
property Location: THPDFValidationSourceLocation read FLocation;
end;
The unit is HPDFDoc; the message identifies the rejected rule or stage, and Location returns the same source coordinates that THPDFValidationJobResult.ErrorLocation publishes
Source location
THPDFValidationSourceLocation carries SourceFile, Stage, RuleID, Path, ObjectNumber, PageIndex, and ByteOffset, so a caller can map a rejected validation to a file, a pipeline stage, a schema rule, a document path, an object, a page, or a byte position
Use CreateAt when raising the exception from an application validator; library validation paths raise it only when a validation job cannot complete rather than when a document is merely non-conforming
ReadWTPDFMetadata · RunValidationBatch · WTPDF 1.0 declaration helpers