Expand description
Re-export risingwave_error
for easy access.
Developer should add new utilities to risingwave_error
crate and
only re-export them here.
Modules§
- Commonly used error types.
- Useful extension utilities for
thiserror
.
Macros§
- Return early with an error, in any type that can be converted from an
anyhow::Error
. - Constructs a
NoFunction
and bails out. - Constructs a
NotImplemented
and bails out. - Define a newtype wrapper around
anyhow::Error
. - Define a newtype + it’s variant in the specified type. This is useful when you want to define a new error type, but also want to define a variant for it in another enum.
- Util macro for generating error when condition check failed.
- Util macro to generate error when the two arguments are not equal.
- Match an enum variant and return the internal value.
- Constructs a
NoFunction
. - Constructs a
NotImplemented
. - Try to match an enum variant and return the internal value.
Structs§
- A wrapper around an error that provides a cleaned up error trace for display and debug formatting.
Traits§
- Extension trait for
Error
that casts the error to a trait object.
Type Aliases§
Derive Macros§
- Generates a new type that wraps the original error type in an
Arc
. - Generates a new type that wraps the original error type in a [
struct@Box
]. - Generates constructor functions for different variants of the error type.
- Generates extension traits for converting the external error type into the the provided one, with extra context.
- Generates macros for different variants of the error type to construct it or directly bail out.
- Generates the [
Debug
] implementation that delegates to theReport
of an error.