(&self)
| 147 | } |
| 148 | |
| 149 | fn detail_message(&self) -> Option<Cow<str>> { |
| 150 | if let Some(message) = self.message.as_ref() { |
| 151 | return Some(Cow::Borrowed(message)); |
| 152 | } |
| 153 | |
| 154 | if let Some(cause) = self.source() { |
| 155 | return Some(Cow::Owned(cause.to_string())); |
| 156 | } |
| 157 | |
| 158 | None |
| 159 | } |
| 160 | |
| 161 | #[cfg(feature = "with-hyper")] |
| 162 | pub fn into_hyper_response(self) -> hyper::Response<hyper::Body> { |
no test coverage detected