#[non_exhaustive]
pub enum Error {
Database(Box<dyn Error + Send + Sync>),
JsonParser(Box<dyn Error + Send + Sync>),
TemplateFormat(Tmpl),
ModelFieldCountMismatch(usize, usize),
TagContainsWhitespace,
Io(Error),
Template(Box<dyn Error + Send + Sync>),
SystemTime(SystemTimeError),
Zip(Box<dyn Error + Send + Sync>),
}
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Indicates an error happened with the database layer
Currently the argument is a rusqlite::Error
, but it is
cast to a Box so that we can change
the underlying library in the future if needed without breaking
client code.
Indicates an error happened with the JSON parser
Currently the argument is a serde_json::Error
, but it is
cast to a Box so that we can change
the underlying library in the future if needed without breaking
client code.
Indicates an error with the underlying template system
Currently the argument is a ramhorns::Error
, but it is
cast to a Box so that we can change
the underlying library in the future if needed without breaking
client code.
Indicates an error with zip file handling
Currently the argument is a zip::result::ZipError
, but it is
cast to a Box so that we can change
the underlying library in the future if needed without breaking
client code.
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
The lower-level source of this error, if any.
Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access
)
Provides type based access to context intended for error reports.
Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
🔬This is a nightly-only experimental API. (provide_any
)
Data providers should implement this method to provide
all values they are able to
provide by using
demand
.
Read more
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.