NAME
Claude::Agent::Error - Exception classes for Claude Agent SDK
SYNOPSIS
use Claude::Agent::Error;
use Try::Tiny;
try {
# ... code that might fail ...
}
catch {
if ($_->isa('Claude::Agent::Error::CLINotFound')) {
die "Please install Claude CLI first";
}
};
DESCRIPTION
This module provides exception classes for error handling in the Claude Agent SDK.
ERROR CLASSES
Claude::Agent::Error::CLINotFound - CLI not found
Claude::Agent::Error::ProcessError - Process execution failed
Claude::Agent::Error::JSONDecodeError - JSON parsing failed
Claude::Agent::Error::TimeoutError - Operation timed out
Claude::Agent::Error::PermissionDenied - Permission denied
Claude::Agent::Error::HookError - Hook execution failed
AUTHOR
LNATION, <email at lnation.org>
LICENSE
This software is Copyright (c) 2026 by LNATION.
This is free software, licensed under The Artistic License 2.0 (GPL Compatible).