Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BridgeError ¶
type BridgeError struct {
Bridge string // e.g., "yaad", "trace", "sight", "inspect"
Op string // e.g., "Remember", "Recall", "Enable"
Reason string // human-readable reason
Err error // underlying error, if any
}
BridgeError represents a structured error from a bridge component. It captures which bridge failed, the operation attempted, and the underlying reason or wrapped error.
func NewBridgeError ¶
func NewBridgeError(bridge, op, reason string, err error) *BridgeError
NewBridgeError creates a BridgeError with optional wrapped error.
func (*BridgeError) Error ¶
func (e *BridgeError) Error() string
func (*BridgeError) Unwrap ¶
func (e *BridgeError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.