EHPDFOptionalContentStateError

The state API raises this Exception descendant for expired or mismatched graph bindings, invalid explicit contexts, invalid events, invalid selection references, selection capacity, and invalid selection indexes

The renderer converts state-binding failures to EHPDFHeadlessRenderError before borrowed callbacks or output publication; malformed PDF usage data and bounded render failures also use the renderer error contract