pub enum RenderError {
UnknownRule(String),
UnknownProcessor(String),
ProcessorError {
processor: String,
message: String,
},
InvalidExpression(String),
EmptyChoice,
InvalidWeightedChoice(String),
CircularRuleReference(Vec<String>),
UnsupportedValue(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.
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.
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
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
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
Converts to this type from the input type.
Source§impl PartialEq for RenderError
impl PartialEq for RenderError
impl Eq for RenderError
impl StructuralPartialEq for RenderError
Auto Trait Implementations§
impl Freeze for RenderError
impl RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl UnwindSafe for RenderError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more