Skip to content
Lamina PDF

unknown-code

All codes

  • Type: error
  • Kind: usage (the caller misused the API)

What happened

laminapdf explain was given a code that isn’t one of Lamina PDF’s error or warning codes.

Why

Every code Lamina PDF reports is listed once, with its own page. A code that isn’t listed has no explanation to print.

How to fix

Check the spelling: didYouMean lists the known codes closest to the one given. The tables in this folder’s README list every code.

Example

Terminal window
$ laminapdf explain xref-repaird
error[unknown-code]: not a Lamina PDF code
= did you mean: xref-repaired
$ echo $?
2

Data fields

  • code: the code given (untrusted: caller text, never in the message).