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.



11
12
13
14
15
# File 'lib/kairos_mcp/tool_registry.rb', line 11

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.



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

def role
  @role
end

#tool_nameObject (readonly)

Returns the value of attribute tool_name.



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

def tool_name
  @tool_name
end