Module error

Source
Expand description

Defines the Error enum and CarbonResult type used for error handling in the carbon-core framework.

The Error enum captures various error types that can occur within the framework, providing detailed error messages and support for custom error handling. The CarbonResult type alias simplifies function signatures by unifying the return type for functions that may return an Error.

§Overview

  • Error: An enum representing specific error cases, from missing data in transactions to issues with data sources. Each variant provides a descriptive error message.
  • CarbonResult: A type alias for Result<T, Error>, where T is the successful return type.

These errors are essential for handling various scenarios that may arise during data processing in the carbon-core pipeline, including missing update types, missing transaction components, and custom errors for more flexible error management.

§Notes

  • Implementing thiserror::Error provides automatic derivation of error display messages.
  • Each error variant corresponds to a unique error scenario within the carbon-core framework.

Enums§

Error

Type Aliases§

CarbonResult
A type alias for Result with the Error type as the error variant.