pub enum RenderError {
Show 15 variants
UnknownRule(String),
UnknownProcessor(String),
ProcessorError {
processor: String,
message: String,
},
InvalidExpression(String),
EmptyChoice,
ExhaustedUniqueChoice(String),
UnsupportedUniqueChoice(String),
InvalidWeightedChoice(String),
CircularRuleReference(Vec<String>),
UnsupportedValue(String),
UnsupportedIterationSource {
source: String,
value_type: String,
},
ImmutableLoopBinding(String),
InvalidConfigRoot,
UnsupportedStructuredTarget(String),
JsonSerialization(String),
}Expand description
Error returned while compiling or rendering Copperlace rules.
Variants§
UnknownRule(String)
A template referenced a name that is neither bound nor defined as a rule.
UnknownProcessor(String)
A template pipeline referenced a processor that is not registered.
ProcessorError
A registered processor rejected the rendered value.
InvalidExpression(String)
A {...} template expression could not be parsed.
EmptyChoice
An array-backed choice rule had no alternatives.
ExhaustedUniqueChoice(String)
A strict unique choice call used every usable alternative.
UnsupportedUniqueChoice(String)
A strict unique choice call reached a rule that is not an array-backed choice.
InvalidWeightedChoice(String)
A weighted choice config entry is malformed.
CircularRuleReference(Vec<String>)
Rendering detected a recursive rule cycle.
UnsupportedValue(String)
A config value type was parsed but is not renderable.
UnsupportedIterationSource
A loop source resolved successfully but is not iterable.
Fields
ImmutableLoopBinding(String)
An overwrite binding targeted an immutable loop value.
InvalidConfigRoot
The root configuration value was not an object.
UnsupportedStructuredTarget(String)
A structured render was requested for a non-object path.
JsonSerialization(String)
A structured value could not be serialized to JSON.
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
impl Eq for RenderError
Source§impl Error for RenderError
impl Error for RenderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<RenderError> for ConfigError
impl From<RenderError> for ConfigError
Source§fn from(error: RenderError) -> Self
fn from(error: RenderError) -> Self
Source§impl PartialEq for RenderError
impl PartialEq for RenderError
Source§fn eq(&self, other: &RenderError) -> bool
fn eq(&self, other: &RenderError) -> bool
self and other values to be equal, and is used by ==.