Overview
graphitepdf-errors defines the common Result<T> alias and GraphitePdfError enum used across the GraphitePDF workspace.
Scope
graphitepdf-errors contains:
Result<T>as the standard workspace result aliasGraphitePdfErrorfor I/O, layout, rendering, encoding, and validation failures- a minimal dependency footprint centered on
thiserror
Installation
API Summary
| Category | Items |
|---|---|
| Result alias | Result<T> |
| Shared error enum | GraphitePdfError |
Example
use ;
Design Principles
- keep the shared error surface small and predictable
- support workspace-wide consistency for fallible APIs
- avoid pulling unrelated policy into the lowest layer
- remain useful both for internal crates and external consumers
Role In GraphitePDF
This crate lives at the bottom of the workspace and provides a shared error vocabulary for layout, rendering, asset loading, and PDF generation flows.
License
MIT