Module: RubyLLM::MCP::Handlers::Concerns::ErrorHandling

Included in:
ElicitationHandler, HumanInTheLoopHandler, SamplingHandler
Defined in:
lib/ruby_llm/mcp/handlers/concerns/error_handling.rb

Overview

Provides error handling and logging for handler execution

Instance Method Summary collapse

Instance Method Details

#callObject

Wrap call with error handling



10
11
12
13
14
15
# File 'lib/ruby_llm/mcp/handlers/concerns/error_handling.rb', line 10

def call
  super
rescue StandardError => e
  handle_error(e)
  raise
end