1 2 3 4 5 6 7 8 9
use std::fmt::Debug; pub trait Error: Debug { fn source(&self) -> String; fn code(&self) -> u64; fn module(&self) -> String; fn new(source: String, code: u64, module: String) -> Self; }