Skip to main content

Module error

Module error 

Source
Expand description

§Greenlight Error Module

This module provides a comprehensive error handling system for greenlight. It features a generic error type that can be customized with module- or crate-specific error codes, while maintaining compatibility with gRPC status codes and providing rich error context.

Structs§

Error
Generic error type that combines error codes with rich error context.
GrpcErrorDetails
JSON structure for transmitting error details over gRPC.
GrpcErrorInfo
Extracted error information from a gRPC status.
ParsingError

Traits§

ErrorCode
Trait for defining module-specific error codes.
ErrorStatusConversionExt
Extension trait for mapping error codes to gRPC status codes.
RpcErrConversion

Type Aliases§

ClnRpcError
Type alias for Core Lightning RPC error codes.