Exception: MCP::Methods::MissingRequiredCapabilityError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mcp/methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, capability) ⇒ MissingRequiredCapabilityError

Returns a new instance of MissingRequiredCapabilityError.



65
66
67
68
69
# File 'lib/mcp/methods.rb', line 65

def initialize(method, capability)
  super("Server does not support #{capability} (required for #{method})")
  @method = method
  @capability = capability
end

Instance Attribute Details

#capabilityObject (readonly)

Returns the value of attribute capability.



63
64
65
# File 'lib/mcp/methods.rb', line 63

def capability
  @capability
end

#methodObject (readonly)

Returns the value of attribute method.



62
63
64
# File 'lib/mcp/methods.rb', line 62

def method
  @method
end