Struct sentry_core::protocol::Exception
source · [−]pub struct Exception {
pub ty: String,
pub value: Option<String>,
pub module: Option<String>,
pub stacktrace: Option<Stacktrace>,
pub raw_stacktrace: Option<Stacktrace>,
pub thread_id: Option<ThreadId>,
pub mechanism: Option<Mechanism>,
}
Expand description
Represents a single exception.
Fields
ty: String
The type of the exception.
value: Option<String>
The optional value of the exception.
module: Option<String>
An optional module for this exception.
stacktrace: Option<Stacktrace>
Optionally the stacktrace.
raw_stacktrace: Option<Stacktrace>
An optional raw stacktrace.
thread_id: Option<ThreadId>
Optional identifier referring to a thread.
mechanism: Option<Mechanism>
The mechanism of the exception including OS specific exception values.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Exception
impl<'de> Deserialize<'de> for Exception
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Exception, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Exception, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for Exception
impl Serialize for Exception
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Exception
Auto Trait Implementations
impl RefUnwindSafe for Exception
impl Send for Exception
impl Sync for Exception
impl Unpin for Exception
impl UnwindSafe for Exception
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more