pdfextract API
    Preparing search index...

    Class PdfExtractError

    Typed failure preserving a primary cause, operation context and any cleanup failures.

    Hierarchy

    • Error
      • PdfExtractError
    Index
    • Construct a typed error with an optional original cause and safe context.

      Parameters

      • code: ErrorCode
      • message: string
      • options: { cause?: unknown; context?: Record<string, unknown> } = {}
        • Optionalcause?: unknown

          Original underlying failure.

        • Optionalcontext?: Record<string, unknown>

          Safe diagnostic fields for the affected operation.

      Returns PdfExtractError

    cleanupErrors?: unknown[]

    Secondary failures such as an unsuccessful multipart abort; the primary cause remains preserved.

    code: ErrorCode

    Failure category suitable for branching independently of the human-readable message.

    context: Readonly<Record<string, unknown>>

    Available page, image, key or other operation context. Do not attach credentials.