// Copyright 2024-2026 Jonathan Shook
// SPDX-License-Identifier: Apache-2.0
//! ErrorHandler trait: the composable unit in the handler chain.
use crateErrorDetail;
/// A single error handler in the chain.
///
/// Each handler can:
/// - Perform side effects (logging, counting, metering)
/// - Transform the `ErrorDetail` (mark as retryable, change result code)
/// - Halt execution (by panicking or returning a stop signal)
///
/// Handlers are composable: the chain passes `ErrorDetail` through
/// each handler in sequence.