Skip to main content

prim_fmt/
error.rs

1//! Engine error types — part of the public contract.
2
3/// An error returned by [`crate::format`] when a source cannot be formatted.
4#[derive(Debug, thiserror::Error)]
5pub enum FormatError {
6    /// The source could not be parsed as its format. The string carries the
7    /// underlying parser's message (including location, when available).
8    #[error("{0}")]
9    Parse(String),
10}