Exception: Mcp::Tools::Manager::VersionNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- Mcp::Tools::Manager::VersionNotFoundError
- Defined in:
- app/services/mcp/tools/manager.rb
Instance Attribute Summary collapse
-
#available_versions ⇒ Object
readonly
Returns the value of attribute available_versions.
-
#requested_version ⇒ Object
readonly
Returns the value of attribute requested_version.
-
#tool_name ⇒ Object
readonly
Returns the value of attribute tool_name.
Instance Method Summary collapse
-
#initialize(tool_name, requested_version, available_versions) ⇒ VersionNotFoundError
constructor
A new instance of VersionNotFoundError.
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_versions ⇒ Object (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_version ⇒ Object (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_name ⇒ Object (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 |