Run NodesReference
errors
Package errors provides common error types and utilities for the Lux node.
import "github.com/luxfi/node/errors"Package errors provides common error types and utilities for the Lux node.
Functions
IsClosed
func IsClosed(err error) boolIsClosed checks if an error indicates a closed resource
IsNotFound
func IsNotFound(err error) boolIsNotFound checks if an error is a "not found" error
IsPermanent
func IsPermanent(err error) boolIsPermanent checks if an error is permanent and should not be retried
IsTemporary
func IsTemporary(err error) boolIsTemporary checks if an error is temporary and can be retried
IsTimeout
func IsTimeout(err error) boolIsTimeout checks if an error is a timeout
Join
func Join(errs ...error) errorJoin combines multiple errors into a single error
Wrap
func Wrap(err error, category Category, message string) errorWrap creates a new WrappedError with the given category and message
WrapWithContext
func WrapWithContext(err error, category Category, message string, context map[string]interface{}) errorWrapWithContext creates a new WrappedError with context information
Types
Category
Error categories for grouping related errors
func GetCategory(err error) CategoryMulti
Multi combines multiple errors into a single error
func (m *Multi) Add(err error)func (m *Multi) Err() errorfunc (m *Multi) Error() stringWrappedError
WrappedError provides context around an error
func (e *WrappedError) Error() stringfunc (e *WrappedError) Is(target error) boolfunc (e *WrappedError) Unwrap() errorrpcdb
Package rpcdb is luxd's canonical Layer C home for the rpcdb service: one Service implementation backed by a database.Database, with a transport adapter per supported wire protocol.gas
The gas package implements dynamic gas pricing specified in LP-103: https://github.com/luxfi/LPs/tree/main/LPs/103-dynamic-fees