Enum mailpot_web::ErrorKind
source · pub enum ErrorKind {
External(Error),
Sql(Error),
Io(Error),
Melib(Error),
SerdeJson(Error),
Template(Error),
Msg(String),
PostRejected(String),
NotFound(&'static str),
InvalidRequest(String),
Information(String),
Bug(String),
// some variants omitted
}
Expand description
The kind of an error.
Variants§
External(Error)
Error returned from an external user initiated operation such as deserialization or I/O.
Sql(Error)
Error returned from sqlite3.
Io(Error)
Error returned from internal I/O operations.
Melib(Error)
Error returned from e-mail protocol operations from melib
crate.
SerdeJson(Error)
Error from deserializing JSON values.
Template(Error)
Error returned from minijinja template engine.
Msg(String)
A convenient variant for String.
PostRejected(String)
Post rejected.
NotFound(&'static str)
An entry was not found in the database.
InvalidRequest(String)
A request was invalid.
Information(String)
An error happened and it was handled internally.
Bug(String)
An error that shouldn’t happen and should be reported.