Function sentry::capture_exception [] [src]

pub fn capture_exception(ty: &str, value: Option<String>) -> Uuid

Captures an error.

This attaches the current stacktrace automatically.

Example

sentry::capture_exception("MyError", Some("This went horribly wrong".into()));