Implement error handling with custom Error enum and thread-local storage for tracking last error message to improve FFI interoperability.
Implement error handling with custom Error enum and thread-local storage for tracking last error message to improve FFI interoperability.