EHPDFValidationError Class

The typed exception raised when a validation request cannot reach 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 names the rejected rule or stage, and Location hands back 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 your own validator raises the exception; the library raises it only where a validation job cannot finish, never merely because a document is non-conforming

ReadWTPDFMetadata · RunValidationBatch · WTPDF 1.0 declaration helpers