Exception: MCP::Methods::MissingRequiredCapabilityError
- Inherits:
-
StandardError
- Object
- StandardError
- MCP::Methods::MissingRequiredCapabilityError
- Defined in:
- lib/mcp/methods.rb
Instance Attribute Summary collapse
-
#capability ⇒ Object
readonly
Returns the value of attribute capability.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(method, capability) ⇒ MissingRequiredCapabilityError
constructor
A new instance of MissingRequiredCapabilityError.
Constructor Details
#initialize(method, capability) ⇒ MissingRequiredCapabilityError
Returns a new instance of MissingRequiredCapabilityError.
40 41 42 43 44 |
# File 'lib/mcp/methods.rb', line 40 def initialize(method, capability) super("Server does not support #{capability} (required for #{method})") @method = method @capability = capability end |
Instance Attribute Details
#capability ⇒ Object (readonly)
Returns the value of attribute capability.
38 39 40 |
# File 'lib/mcp/methods.rb', line 38 def capability @capability end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
37 38 39 |
# File 'lib/mcp/methods.rb', line 37 def method @method end |