(&self)
| 314 | |
| 315 | impl std::error::Error for PristineError { |
| 316 | fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { |
| 317 | match self { |
| 318 | Self::Database(e) => Some(e.as_ref()), |
| 319 | Self::Transaction(e) => Some(e.as_ref()), |
| 320 | Self::Table(e) => Some(e.as_ref()), |
| 321 | Self::Storage(e) => Some(e.as_ref()), |
| 322 | Self::Commit(e) => Some(e.as_ref()), |
| 323 | Self::Io(e) => Some(e), |
| 324 | _ => None, |
| 325 | } |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | // From Implementations for Error Conversion |