Converts `self` to a string `String`, along with the chain of _source_ errors or causes, if there are any. # Examples Basic usage: ``` use anyhow::anyhow; use mz_ore::error::ErrorExt; let error = anyhow!("inner"); let error = error.context("context"); assert_eq!(error.to_string_with_causes(), "context: inner"); ```
(&self)
| 53 | /// assert_eq!(error.to_string_with_causes(), "context: inner"); |
| 54 | /// ``` |
| 55 | fn to_string_with_causes(&self) -> String { |
| 56 | format!("{}", self.display_with_causes()) |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | impl<E: Error + ?Sized> ErrorExt for E {} |
no outgoing calls