Exception: KairosMcp::ToolRegistry::GateDeniedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/kairos_mcp/tool_registry.rb

Overview

Authorization denial raised by registered gates

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#roleObject (readonly)

Returns the value of attribute role.



9
10
11
# File 'lib/kairos_mcp/tool_registry.rb', line 9

def role
  @role
end

#tool_nameObject (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