pub enum GeopError {
Root {
message: String,
backtrace: Backtrace,
},
Context {
inner: Box<GeopError>,
context: Option<Box<dyn DebugContext>>,
},
}Variants§
Implementations§
Source§impl GeopError
impl GeopError
Sourcepub fn new(message: impl Into<String>) -> Self
pub fn new(message: impl Into<String>) -> Self
Create a root error. Captures a backtrace at the call site.
Sourcepub fn with_context(self, message: impl Into<String>) -> Self
pub fn with_context(self, message: impl Into<String>) -> Self
Wrap this error in a Context frame with a string message.
Sourcepub fn with_scene(self, scene: impl DebugContext + 'static) -> Self
pub fn with_scene(self, scene: impl DebugContext + 'static) -> Self
Wrap this error in a Context frame with a debug scene.
Sourcepub fn scene_labels(&self) -> Vec<&str>
pub fn scene_labels(&self) -> Vec<&str>
Walk the chain and collect labels of all attached scenes, root-first.
Trait Implementations§
Source§impl Error for GeopError
impl Error for GeopError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !Freeze for GeopError
impl !RefUnwindSafe for GeopError
impl !UnwindSafe for GeopError
impl Send for GeopError
impl Sync for GeopError
impl Unpin for GeopError
impl UnsafeUnpin for GeopError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more