(&self)
| 549 | |
| 550 | impl std::error::Error for PristineError { |
| 551 | fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { |
| 552 | match self { |
| 553 | Self::Database(e) => Some(e.as_ref()), |
| 554 | Self::Transaction(e) => Some(e.as_ref()), |
| 555 | Self::Table(e) => Some(e.as_ref()), |
| 556 | Self::Storage(e) => Some(e.as_ref()), |
| 557 | Self::Commit(e) => Some(e.as_ref()), |
| 558 | Self::Io(e) => Some(e), |
| 559 | _ => None, |
| 560 | } |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | // From Implementations for Error Conversion |