MCPcopy Create free account
hub / github.com/apache/arrow-rs / get_error_code

Function get_error_code

arrow-array/src/ffi_stream.rs:270–277  ·  view source on GitHub ↗
(err: &ArrowError)

Source from the content-addressed store, hash-verified

268}
269
270fn get_error_code(err: &ArrowError) -> i32 {
271 match err {
272 ArrowError::NotYetImplemented(_) => ENOSYS,
273 ArrowError::MemoryError(_) => ENOMEM,
274 ArrowError::IoError(_, _) => EIO,
275 _ => EINVAL,
276 }
277}
278
279/// A `RecordBatchReader` which imports Arrays from `FFI_ArrowArrayStream`.
280///

Callers 2

get_schemaMethod · 0.85
get_nextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected