Exception: KairosMcp::ToolRegistry::GateDeniedError
- Inherits:
-
StandardError
- Object
- StandardError
- KairosMcp::ToolRegistry::GateDeniedError
- Defined in:
- lib/kairos_mcp/tool_registry.rb
Overview
Authorization denial raised by registered gates
Instance Attribute Summary collapse
-
#role ⇒ Object
readonly
Returns the value of attribute role.
-
#tool_name ⇒ Object
readonly
Returns the value of attribute tool_name.
Instance Method Summary collapse
-
#initialize(tool_name, role, msg = nil) ⇒ GateDeniedError
constructor
A new instance of GateDeniedError.
Constructor Details
#initialize(tool_name, role, msg = nil) ⇒ GateDeniedError
Returns a new instance of GateDeniedError.
10 11 12 13 14 |
# File 'lib/kairos_mcp/tool_registry.rb', line 10 def initialize(tool_name, role, msg = nil) @tool_name = tool_name @role = role super(msg || "Access denied: #{tool_name} requires higher privileges") end |
Instance Attribute Details
#role ⇒ Object (readonly)
Returns the value of attribute role.
9 10 11 |
# File 'lib/kairos_mcp/tool_registry.rb', line 9 def role @role end |
#tool_name ⇒ Object (readonly)
Returns the value of attribute tool_name.
9 10 11 |
# File 'lib/kairos_mcp/tool_registry.rb', line 9 def tool_name @tool_name end |