MCPcopy Create free account
hub / github.com/06chaynes/http-cache / source

Method source

http-cache/src/error.rs:187–197  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

185
186impl std::error::Error for HttpCacheError {
187 fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
188 match self {
189 Self::Client(e) => Some(e.as_ref()),
190 Self::Cache(_) => None,
191 Self::BadRequest(e) => Some(e),
192 Self::Http(e) => Some(e.as_ref()),
193 Self::Body(e) => Some(e.as_ref()),
194 Self::Streaming(e) => Some(e),
195 Self::Other(e) => Some(e.as_ref()),
196 }
197 }
198}
199
200// Comprehensive From implementations for common error types

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected