Add generic error variant
This commit is contained in:
@@ -242,6 +242,8 @@ impl<E: Into<Error>> Contextualize<Error> for E {
|
|||||||
|
|
||||||
#[derive(Debug, Clone, thiserror::Error, Deserialize, Serialize)]
|
#[derive(Debug, Clone, thiserror::Error, Deserialize, Serialize)]
|
||||||
pub enum ErrorType {
|
pub enum ErrorType {
|
||||||
|
#[error("{0}")]
|
||||||
|
Error(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<ErrorType> for Error {
|
impl From<ErrorType> for Error {
|
||||||
|
|||||||
Reference in New Issue
Block a user