import { CodeBuddyError } from './base-error.js';
/**
 * Error during tool execution
 */
export class ToolExecutionError extends CodeBuddyError {
    toolName;
    args;
    constructor(toolName, message, options = {}) {
        super('TOOL_EXECUTION_ERROR', message, options);
        this.name = 'ToolExecutionError';
        this.toolName = toolName;
        this.args = options.args;
    }
}
/**
 * Tool validation failed
 */
export class ToolValidationError extends CodeBuddyError {
    toolName;
    validationErrors;
    constructor(toolName, validationErrors, options = {}) {
        super('TOOL_VALIDATION_ERROR', `Validation failed for tool "${toolName}": ${validationErrors.join(', ')}`, options);
        this.name = 'ToolValidationError';
        this.toolName = toolName;
        this.validationErrors = validationErrors;
    }
}
/**
 * Tool not found
 */
export class ToolNotFoundError extends CodeBuddyError {
    toolName;
    constructor(toolName) {
        super('TOOL_NOT_FOUND', `Tool "${toolName}" not found`);
        this.name = 'ToolNotFoundError';
        this.toolName = toolName;
    }
}
//# sourceMappingURL=tool-error.js.map