You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/iceberg/src/error.rs
+43Lines changed: 43 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -235,6 +235,49 @@ impl Error {
235
235
self
236
236
}
237
237
238
+
/// Return error's backtrace.
239
+
///
240
+
/// Note: the standard way of exposing backtrace is the unstable feature [`error_generic_member_access`](https://github.com/rust-lang/rust/issues/99301).
241
+
/// We don't provide it as it requires nightly rust.
242
+
///
243
+
/// If you just want to print error with backtrace, use `Debug`, like `format!("{err:?}")`.
244
+
///
245
+
/// If you use nightly rust, and want to access `iceberg::Error`'s backtrace in the standard way, you can
246
+
/// implement a newtype like this:
247
+
///
248
+
/// ```ignore
249
+
/// // assume you already have `#![feature(error_generic_member_access)]` on the top of your crate
0 commit comments