valkyrie_runtime/errors/
display.rs1use super::*;
2
3impl Error for ExampleError {}
4
5
6impl Debug for ExampleError {
7 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
8 Debug::fmt(&self.kind, f)
9 }
10}
11
12impl Display for ExampleError {
13 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
14 Display::fmt(&self.kind, f)
15 }
16}
17
18
19impl Display for ExampleErrorKind {
20 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
21 match self { ExampleErrorKind::UnknownError => { write!(f, "UnknownError") } }
22 }
23}