Skip to main content

Module errors

Module errors 

Source
Expand description

Error types for the claude-cli-sdk.

All fallible operations in this crate return Result<T>, which is an alias for std::result::Result<T, Error>.

§Example

use claude_cli_sdk::{Error, Result};

fn might_fail() -> Result<()> {
    Err(Error::NotConnected)
}

Enums§

Error
All errors that can be produced by the claude-code SDK.

Type Aliases§

Result
Convenience alias so callers can write Result<T> instead of std::result::Result<T, claude_cli_sdk::Error>.