Exception: McpToolkit::Protocol::InternalError

Inherits:
Error
  • Object
show all
Defined in:
lib/mcp_toolkit/protocol.rb

Instance Attribute Summary

Attributes inherited from Error

#code, #data

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(message = "Internal error", data: nil) ⇒ InternalError

Returns a new instance of InternalError.



84
85
86
# File 'lib/mcp_toolkit/protocol.rb', line 84

def initialize(message = "Internal error", data: nil)
  super(message, code: ErrorCodes::INTERNAL_ERROR, data:)
end