[#PackageValidationState] = PackageValidationState :mrdocs: Validation state for a package, carrying a PackageValidationResult rejection reason. == Synopsis Declared in `<policy/packages.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class PackageValidationState : public xref:ValidationState-04.adoc[ValidationState<PackageValidationResult>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:ValidationState-04.adoc[ValidationState<PackageValidationResult>]` | Template for capturing information about block/transaction validation. This is instantiated by TxValidationState and BlockValidationState for validation information on transactions and blocks respectively. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:PackageValidationState/Error.adoc[`Error`] | Puts the state into the run‐time error mode. | xref:PackageValidationState/GetDebugMessage.adoc[`GetDebugMessage`] | Returns the human‐readable debug message. | xref:PackageValidationState/GetRejectReason.adoc[`GetRejectReason`] | Returns the short rejection reason. | xref:PackageValidationState/GetResult.adoc[`GetResult`] | Returns the recorded result code. | xref:PackageValidationState/Invalid.adoc[`Invalid`] | Marks the state invalid and records the reason and debug message. | xref:PackageValidationState/IsError.adoc[`IsError`] | Returns true if the state was marked with a run‐time error. | xref:PackageValidationState/IsInvalid.adoc[`IsInvalid`] | Returns true if the state was marked invalid by a consensus or policy rule. | xref:PackageValidationState/IsValid.adoc[`IsValid`] | Returns true if no validation failure has been recorded. | xref:PackageValidationState/ToString.adoc[`ToString`] | Formats the state as a human‐readable string. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#