pub struct Error {
pub kind: ErrorKind,
/* private fields */
}
Expand description
The Error type
Fields§
§kind: ErrorKind
Kind of error
Implementations§
source§impl Error
impl Error
sourcepub fn circular_extend(
tpl: impl ToString,
inheritance_chain: Vec<String>
) -> Self
pub fn circular_extend( tpl: impl ToString, inheritance_chain: Vec<String> ) -> Self
Creates a circular extend error
sourcepub fn missing_parent(current: impl ToString, parent: impl ToString) -> Self
pub fn missing_parent(current: impl ToString, parent: impl ToString) -> Self
Creates a missing parent error
sourcepub fn template_not_found(tpl: impl ToString) -> Self
pub fn template_not_found(tpl: impl ToString) -> Self
Creates a template not found error
sourcepub fn filter_not_found(name: impl ToString) -> Self
pub fn filter_not_found(name: impl ToString) -> Self
Creates a filter not found error
sourcepub fn test_not_found(name: impl ToString) -> Self
pub fn test_not_found(name: impl ToString) -> Self
Creates a test not found error
sourcepub fn function_not_found(name: impl ToString) -> Self
pub fn function_not_found(name: impl ToString) -> Self
Creates a function not found error
sourcepub fn chain(
value: impl ToString,
source: impl Into<Box<dyn StdError + Send + Sync>>
) -> Self
pub fn chain( value: impl ToString, source: impl Into<Box<dyn StdError + Send + Sync>> ) -> Self
Creates generic error with a source
sourcepub fn call_function(
name: impl ToString,
source: impl Into<Box<dyn StdError + Send + Sync>>
) -> Self
pub fn call_function( name: impl ToString, source: impl Into<Box<dyn StdError + Send + Sync>> ) -> Self
Creates an error wrapping a failed function call.
sourcepub fn call_filter(
name: impl ToString,
source: impl Into<Box<dyn StdError + Send + Sync>>
) -> Self
pub fn call_filter( name: impl ToString, source: impl Into<Box<dyn StdError + Send + Sync>> ) -> Self
Creates an error wrapping a failed filter call.
sourcepub fn call_test(
name: impl ToString,
source: impl Into<Box<dyn StdError + Send + Sync>>
) -> Self
pub fn call_test( name: impl ToString, source: impl Into<Box<dyn StdError + Send + Sync>> ) -> Self
Creates an error wrapping a failed test call.
sourcepub fn invalid_macro_def(name: impl ToString) -> Self
pub fn invalid_macro_def(name: impl ToString) -> Self
Creates an invalid macro definition error
sourcepub fn utf8_conversion_error(error: FromUtf8Error, context: String) -> Self
pub fn utf8_conversion_error(error: FromUtf8Error, context: String) -> Self
Creates an utf8 conversion error
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
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()