[−][src]Struct af_sentry::Error
A sentry error.
Errors are automatically reported when dropped.
Fields
description: String
A short description of the error.
detail: String
A detailed description of the error.
fingerprint: Fingerprint
The fingerprint of the error.
Errors with the same fingerprint are grouped together. The default groups
by [type
] and ClientOptions::environment
.
type_name: String
The type of the error.
Additional tags to apply to the error.
user: User
User data to send with the error.
uuid: Uuid
The UUID of the event.
Implementations
impl Error
[src]
pub fn new(type_name: impl Into<String>) -> Self
[src]
Creates a new error with the given type.
pub fn set_description(&mut self, description: impl ToString)
[src]
Sets the short description of the error.
pub fn set_detail(&mut self, detail: impl ToString)
[src]
Sets the detailed description of the error.
pub fn set_tag(&mut self, name: impl Into<String>, value: impl ToString)
[src]
Adds extra tagged information.
pub fn with_description(mut self: Self, description: impl ToString) -> Self
[src]
Sets the short description of the error.
pub fn with_detail(mut self: Self, detail: impl ToString) -> Self
[src]
Sets the detailed description of the error.
pub fn with_fingerprint(mut self: Self, fingerprint: Fingerprint) -> Self
[src]
Sets the fingerprint used to group the error.
pub fn with_tag(
mut self: Self,
name: impl Into<String>,
value: impl ToString
) -> Self
[src]
mut self: Self,
name: impl Into<String>,
value: impl ToString
) -> Self
Adds extra tagged information.
pub fn with_user(mut self: Self, user: User) -> Self
[src]
Adds user information.
pub fn with_user_id(mut self: Self, id: impl ToString) -> Self
[src]
Adds user ID information.
pub fn report(mut self: Self) -> Uuid
[src]
Reports this error to sentry.
Equivalent to dropping the error, but returns the error Uuid
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
[src]
impl Send for Error
[src]
impl Sync for Error
[src]
impl Unpin for Error
[src]
impl UnwindSafe for Error
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,