Skip to main content

producer_error

Function producer_error 

Source
unsafe fn producer_error(
    stream_ptr: *mut FFI_ArrowArrayStream,
) -> Option<String>
Expand description

Returns the producer’s message for the last failed call on a FFI_ArrowArrayStream.

Returns None when the producer supplies no message, either because it installs no get_last_error callback or because that callback returns NULL: the C Stream Interface lets get_last_error return NULL when no detailed description is available.

§Safety

stream_ptr must point to a valid, not yet released FFI_ArrowArrayStream, and the last operation on it must have returned an error: the C Stream Interface forbids calling get_last_error in any other case.