wraps self in Self::Context with a description
(self, description: impl Into<String>)
| 457 | |
| 458 | /// wraps self in Self::Context with a description |
| 459 | pub fn context(self, description: impl Into<String>) -> Self { |
| 460 | Self::Context(description.into(), Box::new(self)) |
| 461 | } |
| 462 | |
| 463 | /// Strips backtrace out of the error message |
| 464 | /// If backtrace enabled then error has a format "message" [`Self::BACK_TRACE_SEP`] "backtrace" |