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>,
) -> Error
pub fn circular_extend( tpl: impl ToString, inheritance_chain: Vec<String>, ) -> Error
Creates a circular extend error
Sourcepub fn missing_parent(current: impl ToString, parent: impl ToString) -> Error
pub fn missing_parent(current: impl ToString, parent: impl ToString) -> Error
Creates a missing parent error
Sourcepub fn template_not_found(tpl: impl ToString) -> Error
pub fn template_not_found(tpl: impl ToString) -> Error
Creates a template not found error
Sourcepub fn filter_not_found(name: impl ToString) -> Error
pub fn filter_not_found(name: impl ToString) -> Error
Creates a filter not found error
Sourcepub fn test_not_found(name: impl ToString) -> Error
pub fn test_not_found(name: impl ToString) -> Error
Creates a test not found error
Sourcepub fn function_not_found(name: impl ToString) -> Error
pub fn function_not_found(name: impl ToString) -> Error
Creates a function not found error
Sourcepub fn chain(
value: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync>>,
) -> Error
pub fn chain( value: impl ToString, source: impl Into<Box<dyn Error + Send + Sync>>, ) -> Error
Creates generic error with a source
Sourcepub fn call_function(
name: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync>>,
) -> Error
pub fn call_function( name: impl ToString, source: impl Into<Box<dyn Error + Send + Sync>>, ) -> Error
Creates an error wrapping a failed function call.
Sourcepub fn call_filter(
name: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync>>,
) -> Error
pub fn call_filter( name: impl ToString, source: impl Into<Box<dyn Error + Send + Sync>>, ) -> Error
Creates an error wrapping a failed filter call.
Sourcepub fn call_test(
name: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync>>,
) -> Error
pub fn call_test( name: impl ToString, source: impl Into<Box<dyn Error + Send + Sync>>, ) -> Error
Creates an error wrapping a failed test call.
Sourcepub fn invalid_macro_def(name: impl ToString) -> Error
pub fn invalid_macro_def(name: impl ToString) -> Error
Creates an invalid macro definition error
Sourcepub fn utf8_conversion_error(error: FromUtf8Error, context: String) -> Error
pub fn utf8_conversion_error(error: FromUtf8Error, context: String) -> Error
Creates an utf8 conversion error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more