liquid_json/
error.rs

1#[derive(Debug, thiserror::Error)]
2/// Errors that can occur when rendering a Liquid JSON template.
3pub enum Error {
4    /// Thrown when the data provided to render functions isn't a Key/Value map.
5    #[error("Invalid context passed to template. Expected a map, got {0:?}")]
6    InvalidContext(serde_json::Value),
7    /// Passed through from the Liquid library.
8    #[error(transparent)]
9    LiquidError(#[from] liquid::Error),
10    /// Tried to use a u64 value in a Liquid template, which isn't supported by the Liquid library.
11    #[error("Liquid templates do not support u64 values as of right now")]
12    U64,
13}