MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / handle_error_general

Function handle_error_general

src/core/error.rs:34–43  ·  view source on GitHub ↗

Default error handling callback provided by ArrayFire crate

(error_code: AfError)

Source from the content-addressed store, hash-verified

32
33/// Default error handling callback provided by ArrayFire crate
34pub fn handle_error_general(error_code: AfError) {
35 match error_code {
36 AfError::SUCCESS => {} /* No-op */
37 _ => panic!(
38 "Error message: {}\nLast error: {}",
39 error_code,
40 get_last_error()
41 ),
42 }
43}
44
45lazy_static! {
46 static ref ERROR_HANDLER_LOCK: RwLock<Callback> =

Callers 12

get_device_native_idFunction · 0.85
set_device_native_idFunction · 0.85
get_streamFunction · 0.85
get_contextFunction · 0.85
get_queueFunction · 0.85
get_device_idFunction · 0.85
set_device_idFunction · 0.85
add_device_contextFunction · 0.85
set_device_contextFunction · 0.85
delete_device_contextFunction · 0.85
get_device_typeFunction · 0.85
get_platformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected