(&self)
| 161 | |
| 162 | impl Error for StorageError { |
| 163 | fn source(&self) -> Option<&(dyn Error + 'static)> { |
| 164 | match self { |
| 165 | Self::CollectionIdReused(_) => None, |
| 166 | Self::SinkIdReused(_) => None, |
| 167 | Self::IdentifierMissing(_) => None, |
| 168 | Self::IdentifierInvalid(_) => None, |
| 169 | Self::UpdateBeyondUpper(_) => None, |
| 170 | Self::ReadBeforeSince(_) => None, |
| 171 | Self::InvalidUppers(_) => None, |
| 172 | Self::IngestionInstanceMissing { .. } => None, |
| 173 | Self::ExportInstanceMissing { .. } => None, |
| 174 | Self::DataflowError(err) => Some(err), |
| 175 | Self::InvalidAlter { .. } => None, |
| 176 | Self::InvalidUsage(_) => None, |
| 177 | Self::ShuttingDown(_) => None, |
| 178 | Self::CollectionMetadataAlreadyExists(_) => None, |
| 179 | Self::PersistShardAlreadyInUse(_) => None, |
| 180 | Self::PersistSchemaEvolveRace { .. } => None, |
| 181 | Self::PersistInvalidSchemaEvolve { .. } => None, |
| 182 | Self::TxnWalShardAlreadyExists => None, |
| 183 | Self::MissingSubsourceReference { .. } => None, |
| 184 | Self::RtrTimeout(_) => None, |
| 185 | Self::RtrDropFailure(_) => None, |
| 186 | Self::Generic(err) => err.source(), |
| 187 | Self::ReadOnly => None, |
| 188 | } |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | impl fmt::Display for StorageError { |
no outgoing calls
no test coverage detected