use thiserror::Error;
#[derive(Debug, Error)]
pub enum EngineError {
#[error("Mismatched closing character in the input JSON.")]
DepthBelowZero,
#[error(
"Maximum depth of {0} exceeded. \
Larger depths are currently unsupported. \
If this feature is important to you, \
please raise an issue at {}",
crate::error::FEATURE_REQUEST_URL
)]
DepthAboveLimit(usize),
#[error(
"Malformed label in the input JSON. \
The colon at position {0} must be preceded by a string, but \
the engine could not match the appropriate double quote characters."
)]
MalformedLabelQuotes(usize),
}