pub fn make_error_event( kind: &str, code: Option<&str>, user_message: impl Into<String>, raw: Option<String>, ) -> SessionEvent