claude_node.exceptions — Typed exception hierarchy for Claude CLI controller. All exceptions inherit from ClaudeError (which inherits from RuntimeError), allowing callers to catch all claude-node errors with a single handler while also catching specific types for granular error h
# Source: https://github.com/claw-army/claude-node | License: Apache-2.0
# Provided via justclaw.it.com; keep this notice with the code.
"""
claude_node.exceptions — Typed exception hierarchy for Claude CLI controller.
All exceptions inherit from ClaudeError (which inherits from RuntimeError),
allowing callers to catch all claude-node errors with a single handler
while also catching specific types for granular error handling.
"""
class ClaudeError(RuntimeError):
"""Base exception for all claude-node errors."""
pass
class ClaudeBinaryNotFound(ClaudeError):
"""Raised when the claude binary cannot be found at the expected path."""
pass
class ClaudeStartupError(ClaudeError):
"""Raised when the Claude subprocess fails to start or exits unexpectedly."""
pass
c
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key