Repository navigation
Flatten fdb::Error so the FDB's schema errors are matched without fdb-sys - #422
Merged
Merged
Conversation
Choochmeque
marked this pull request as ready for review
November 12, 2026 08:41
simondsmart
approved these changes
Nov 12, 2026
simondsmart
force-pushed
the
rust/flat-error
branch
from
November 12, 2026 13:42
5b314c2 to
0fd5e58
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Gives fdb::Error one variant per FDB exception class the Rust bridge can observe, next to Eckit, Io, SizeOverflow and Other, so an application matches Error::SchemaError without a dependency on ecmwf-fdb-sys.
ecmwf-fdb-sys now lists SchemaError.h as its own exception source: the handler is generated from the source tree in a vendored build, from the installation in a system build and from a docs-headers symlink on docs.rs, and the sources are exported for downstream crates.
Same shape as metkit #370.
Contributor Declaration
By opening this pull request, I affirm the following:
🌈🌦️📖🚧 Documentation FDB 🚧📖🌦️🌈
https://sites.ecmwf.int/docs/fdb/pull-requests/PR-422