Struct Error
pub struct Error { /* private fields */ }
The Error struct for Tera.
Implementations
impl Error
fn new(kind: ErrorKind) -> SelfCreates a new error of the given kind.
fn kind(&self) -> &ErrorKindReturns the kind of error
fn chain(value: impl ToString, source: impl Into<Box<dyn StdError + Send + Sync>>) -> SelfCreates generic error with a source
fn message(message: impl ToString) -> SelfCreates generic error with a message and no source.
Trait Implementations
impl Debug for Error
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for Error
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for Error
fn source(&self) -> Option<&dyn Error + 'static>
impl From<Error> for Error
fn from(error: Error) -> Self
impl From<FromUtf8Error> for Error
fn from(error: FromUtf8Error) -> Self