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
Signed-off-by: xxchan <xxchan22f@gmail.com>
## Which issue does this PR close?
#1340
## What changes are included in this PR?
## Are these changes tested?
---------
Signed-off-by: xxchan <xxchan22f@gmail.com>
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
@@ -256,6 +256,49 @@ impl Error {
256
256
self
257
257
}
258
258
259
+
/// Return error's backtrace.
260
+
///
261
+
/// Note: the standard way of exposing backtrace is the unstable feature [`error_generic_member_access`](https://github.com/rust-lang/rust/issues/99301).
262
+
/// We don't provide it as it requires nightly rust.
263
+
///
264
+
/// If you just want to print error with backtrace, use `Debug`, like `format!("{err:?}")`.
265
+
///
266
+
/// If you use nightly rust, and want to access `iceberg::Error`'s backtrace in the standard way, you can
267
+
/// implement a newtype like this:
268
+
///
269
+
/// ```ignore
270
+
/// // assume you already have `#![feature(error_generic_member_access)]` on the top of your crate
0 commit comments