PdfInspector.Error (pdf_inspector_ex v0.1.0)

Copy Markdown View Source

Error payload of every PdfInspector function ({:error, %__MODULE__{}}).

code is one of :io, :parse, :encrypted, :invalid_structure, :not_a_pdf, :internal_panic (the last means a panic was caught at the FFI boundary — it never unwinds into the VM).

Summary

Types

code()

@type code() ::
  :io | :parse | :encrypted | :invalid_structure | :not_a_pdf | :internal_panic

t()

@type t() :: %PdfInspector.Error{code: code(), message: String.t()}