pub unsafe extern "C" fn value_new_exception(
    type_: *const c_char,
    value: *const c_char
) -> Value
Expand description

Creates a new Exception value.

This is intended for capturing language-level exception, such as from a try-catch block. type and value here refer to the exception class and a possible description.

See https://develop.sentry.dev/sdk/event-payloads/exception/

The returned value needs to be attached to an event via sentry_event_add_exception.