Exception: Mcp::Tools::Manager::VersionNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
app/services/mcp/tools/manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tool_name, requested_version, available_versions) ⇒ VersionNotFoundError

Returns a new instance of VersionNotFoundError.



20
21
22
23
24
25
26
# File 'app/services/mcp/tools/manager.rb', line 20

def initialize(tool_name, requested_version, available_versions)
  @tool_name = tool_name
  @requested_version = requested_version
  @available_versions = available_versions
  super("Tool '#{tool_name}' version '#{requested_version}' not found. " \
    "Available versions: #{available_versions.join(', ')}")
end

Instance Attribute Details

#available_versionsObject (readonly)

Returns the value of attribute available_versions.



18
19
20
# File 'app/services/mcp/tools/manager.rb', line 18

def available_versions
  @available_versions
end

#requested_versionObject (readonly)

Returns the value of attribute requested_version.



18
19
20
# File 'app/services/mcp/tools/manager.rb', line 18

def requested_version
  @requested_version
end

#tool_nameObject (readonly)

Returns the value of attribute tool_name.



18
19
20
# File 'app/services/mcp/tools/manager.rb', line 18

def tool_name
  @tool_name
end