Skip to main content

Module error

Module error 

Source
Expand description

Error types for DuckDB extension FFI error propagation.

ExtensionError is the primary error type. It implements std::error::Error, can be constructed from &str or String, and converts to a CString for passing to access.set_error.

§Example

use quack_rs::error::ExtensionError;

let err = ExtensionError::from("Failed to register function");
assert_eq!(err.to_string(), "Failed to register function");

Structs§

ExtensionError
An error that can occur during DuckDB extension initialization or registration.

Type Aliases§

ExtResult
Convenience type alias for Result<T, ExtensionError>.