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.
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
#capability ⇒ Object (readonly)
Returns the value of attribute capability.
63 64 65 |
# File 'lib/mcp/methods.rb', line 63 def capability @capability end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
62 63 64 |
# File 'lib/mcp/methods.rb', line 62 def method @method end |