Exception: Soka::Rails::InvalidToolParametersError

Inherits:
ToolError
  • Object
show all
Defined in:
lib/soka/rails/errors.rb

Overview

Raised when tool is called with invalid parameters

Instance Method Summary collapse

Constructor Details

#initialize(tool_name, errors) ⇒ InvalidToolParametersError

Returns a new instance of InvalidToolParametersError.



61
62
63
# File 'lib/soka/rails/errors.rb', line 61

def initialize(tool_name, errors)
  super("Invalid parameters for tool #{tool_name}: #{errors.join(', ')}")
end