Exception: MCP::CancelledError
- Inherits:
-
StandardError
- Object
- StandardError
- MCP::CancelledError
- Defined in:
- lib/mcp/cancelled_error.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
Instance Method Summary collapse
-
#initialize(message = "Request was cancelled", request_id: nil, reason: nil) ⇒ CancelledError
constructor
A new instance of CancelledError.
Constructor Details
#initialize(message = "Request was cancelled", request_id: nil, reason: nil) ⇒ CancelledError
Returns a new instance of CancelledError.
7 8 9 10 11 |
# File 'lib/mcp/cancelled_error.rb', line 7 def initialize( = "Request was cancelled", request_id: nil, reason: nil) super() @request_id = request_id @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
5 6 7 |
# File 'lib/mcp/cancelled_error.rb', line 5 def reason @reason end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
5 6 7 |
# File 'lib/mcp/cancelled_error.rb', line 5 def request_id @request_id end |