pub struct Error {
pub kind: ErrorKind,
/* private fields */
}Expand description
The Error type
Fields§
§kind: ErrorKindKind 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)>
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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