(&self, f: &mut std::fmt::Formatter<'_>)
| 19 | |
| 20 | impl Display for ApplicationError { |
| 21 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 22 | match self { |
| 23 | ApplicationError::DatabaseConnectionError(res) => write!(f, "{}", res), |
| 24 | ApplicationError::DeserializationError(res) => write!(f, "{}", res), |
| 25 | ApplicationError::EntityNotFound => write!(f, "EntityNotFound"), |
| 26 | ApplicationError::CommandNotFound => write!(f, "CommandNotFound"), |
| 27 | ApplicationError::EventNotFound => write!(f, "EventNotFound"), |
| 28 | ApplicationError::InvalidURL => write!(f, "InvalidURL"), |
| 29 | ApplicationError::TransactionError => write!(f, "TransactionError"), |
| 30 | ApplicationError::StopSentinel => write!(f, "StopSentinel"), |
| 31 | ApplicationError::ParsingError => write!(f, "ParsingError"), |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | pub type ApplicationResult<T> = Result<T, ApplicationError>; |
nothing calls this directly
no outgoing calls
no test coverage detected