@@ -53,6 +53,13 @@ pub enum ApiErrorType {
53
53
CuckooFilterInsertionFailed ,
54
54
CuckooFilterLookupFailed ,
55
55
DataSerializationFailed ,
56
+ DataDeserializationFailed ,
57
+ DBQueryFailed ,
58
+ CacheDeleteFailed ,
59
+ ValueDeleteFailed ,
60
+ CacheQueryFailed ,
61
+ ValueIdNotFound ,
62
+ DataNotFound ,
56
63
}
57
64
58
65
impl std:: fmt:: Display for ApiErrorType {
@@ -70,6 +77,13 @@ impl std::fmt::Display for ApiErrorType {
70
77
"Cuckoo filter lookup failed, data for address not found on this Valence"
71
78
) ,
72
79
ApiErrorType :: DataSerializationFailed => write ! ( f, "Data serialization failed" ) ,
80
+ ApiErrorType :: DataDeserializationFailed => write ! ( f, "Data deserialization failed" ) ,
81
+ ApiErrorType :: DBQueryFailed => write ! ( f, "Data fetch on db failed" ) ,
82
+ ApiErrorType :: CacheQueryFailed => write ! ( f, "Data fetch on cache failed" ) ,
83
+ ApiErrorType :: CacheDeleteFailed => write ! ( f, "Cache deletion failed" ) ,
84
+ ApiErrorType :: ValueDeleteFailed => write ! ( f, "Value deletion failed" ) ,
85
+ ApiErrorType :: DataNotFound => write ! ( f, "Data not found" ) ,
86
+ ApiErrorType :: ValueIdNotFound => write ! ( f, "Value ID not found" ) ,
73
87
}
74
88
}
75
89
}
0 commit comments