Struct Error

struct Error { ... }

The Error type

Fields

kind: ErrorKind

Kind of error

Implementations

impl Error

fn msg<impl ToString: ToString>(value: impl ToString) -> Self

Creates generic error

fn circular_extend<impl ToString: ToString>(tpl: impl ToString, inheritance_chain: Vec<String>) -> Self

Creates a circular extend error

fn missing_parent<impl ToString: ToString, impl ToString: ToString>(current: impl ToString, parent: impl ToString) -> Self

Creates a missing parent error

fn template_not_found<impl ToString: ToString>(tpl: impl ToString) -> Self

Creates a template not found error

fn filter_not_found<impl ToString: ToString>(name: impl ToString) -> Self

Creates a filter not found error

fn test_not_found<impl ToString: ToString>(name: impl ToString) -> Self

Creates a test not found error

fn function_not_found<impl ToString: ToString>(name: impl ToString) -> Self

Creates a function not found error

fn chain<impl ToString: ToString, impl Into<Box<dyn StdError + Send + Sync>>: Into<Box<dyn StdError + Send + Sync>>>(value: impl ToString, source: impl Into<Box<dyn StdError + Send + Sync>>) -> Self

Creates generic error with a source

fn call_function<impl ToString: ToString, impl Into<Box<dyn StdError + Send + Sync>>: Into<Box<dyn StdError + Send + Sync>>>(name: impl ToString, source: impl Into<Box<dyn StdError + Send + Sync>>) -> Self

Creates an error wrapping a failed function call.

fn call_filter<impl ToString: ToString, impl Into<Box<dyn StdError + Send + Sync>>: Into<Box<dyn StdError + Send + Sync>>>(name: impl ToString, source: impl Into<Box<dyn StdError + Send + Sync>>) -> Self

Creates an error wrapping a failed filter call.

fn call_test<impl ToString: ToString, impl Into<Box<dyn StdError + Send + Sync>>: Into<Box<dyn StdError + Send + Sync>>>(name: impl ToString, source: impl Into<Box<dyn StdError + Send + Sync>>) -> Self

Creates an error wrapping a failed test call.

fn json(value: Error) -> Self

Creates JSON error

fn invalid_macro_def<impl ToString: ToString>(name: impl ToString) -> Self

Creates an invalid macro definition error

fn io_error(error: Error) -> Self

Creates an IO error

fn utf8_conversion_error(error: FromUtf8Error, context: String) -> Self

Creates an utf8 conversion error

impl Debug for Error

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Display for Error

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Error for Error

fn source(self: &Self) -> Option<&dyn StdError + 'static>

impl Freeze for Error

impl From for Error

fn from(error: Error) -> Self

impl From for Error

fn from(e: Error) -> Self

impl From for Error

fn from(e: String) -> Self

impl From for Error

fn from(e: &str) -> Self

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnsafeUnpin for Error

impl UnwindSafe for Error

impl<T> Any for Error

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Error

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Error

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for Error

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for Error

unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> ToString for Error

fn to_string(self: &Self) -> String

impl<T, U> Into for Error

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Error

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Error

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip for Error

fn vzip(self: Self) -> V