1 2 3 4 5 6 7 8
/// An application-specific error type #[derive(Debug, PartialEq, Eq)] pub enum AccountError { // Add variants here for account not found, account underfunded and account overfunded NotFound(String), OverFunded(String, u64), UnderFunded(String), }