Skip to main content

Module error

Module error 

Source
Expand description

Error model exposed to plugin authors.

Confium plugins return a u32 status code from each FFI entry point. 0 means success; any other value is one of the canonical codes from ErrorCode. Plugin authors do not want to memorize those numbers — they want to return their own error type and let the SDK convert.

PluginError is the SDK-side enum plugin authors implement From for (or use directly). It carries the canonical ErrorCode so the macro-generated entry points can map_or_else it into the wire u32 exactly the way the core crate does.

Structs§

PluginError
Plugin-side error type. Carries a canonical ErrorCode plus a human-readable message for logging; only the code crosses the FFI.

Enums§

ErrorCode
Canonical error codes returned across the Confium FFI surface.

Type Aliases§

PluginResult
Result alias for plugin-side fallible operations.