get_error

Function get_error 

Source
pub unsafe fn get_error(handle: Dart_Handle) -> *const c_char
Expand description

Returns the error message from the provided Dart error handle.

Should be called on the current isolate.

Returns a C string containing a Dart error message if the provided object represents a Dart error, or an empty C string (“”) otherwise.

§Safety

initialize_api must be called before this function.