mirror of
https://github.com/0xMassi/webclaw.git
synced 2026-06-07 22:15:12 +02:00
15 lines
335 B
Rust
15 lines
335 B
Rust
|
|
/// PDF extraction errors. Kept simple -- no OCR, no complex recovery.
|
||
|
|
use thiserror::Error;
|
||
|
|
|
||
|
|
#[derive(Debug, Error)]
|
||
|
|
pub enum PdfError {
|
||
|
|
#[error("PDF extraction failed: {0}")]
|
||
|
|
ExtractionFailed(String),
|
||
|
|
|
||
|
|
#[error("invalid PDF: {0}")]
|
||
|
|
InvalidPdf(String),
|
||
|
|
|
||
|
|
#[error("empty PDF: no text content found")]
|
||
|
|
EmptyPdf,
|
||
|
|
}
|