dxpdf 0.2.7

A fast DOCX-to-PDF converter powered by Skia
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Renderer error types.

/// Errors that can occur during rendering.
#[derive(Debug)]
pub enum RenderError {
    /// No sections found in the document.
    EmptyDocument,
}

impl std::fmt::Display for RenderError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            RenderError::EmptyDocument => write!(f, "document has no content to render"),
        }
    }
}

impl std::error::Error for RenderError {}