Module forest_filecoin::shim::kernel
source · Expand description
We have three goals for our error shims:
- preserve upstream error numbers.
- preserve upstream error messages.
- allow matching on specific errors.
There are a couple of things that make this difficult:
fvm_shared*::error::ErrorNumber
is#[non_exhaustive]
We have designed with the following assumptions about the fvm*
crates:
- new error variants are append-only
- error messages are consistent between crates