Skip to main content

warble_claude_code/
error.rs

1//! Error type for the Claude Code back-end.
2
3use thiserror::Error;
4
5/// A dispatch/render/resolve failure with a human-facing message. Every unsupported IR arm and
6/// every failed capability resolution surfaces as one of these (loud-fail) rather than emitting a
7/// silently-wrong agent.
8#[derive(Debug, Clone, PartialEq, Eq, Error)]
9#[error("{0}")]
10pub struct DispatchError(pub String);
11
12impl DispatchError {
13    pub fn new(message: impl Into<String>) -> Self {
14        DispatchError(message.into())
15    }
16}