Exception: KairosMcp::Daemon::RestrictedShell::OutputTruncated

Inherits:
ShellError
  • Object
show all
Defined in:
lib/kairos_mcp/daemon/restricted_shell/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stream, limit) ⇒ OutputTruncated

Returns a new instance of OutputTruncated.



22
23
24
25
26
# File 'lib/kairos_mcp/daemon/restricted_shell/errors.rb', line 22

def initialize(stream, limit)
  super("stream=#{stream} exceeded #{limit} bytes")
  @stream = stream
  @limit = limit
end

Instance Attribute Details

#limitObject (readonly)

Returns the value of attribute limit.



21
22
23
# File 'lib/kairos_mcp/daemon/restricted_shell/errors.rb', line 21

def limit
  @limit
end

#streamObject (readonly)

Returns the value of attribute stream.



21
22
23
# File 'lib/kairos_mcp/daemon/restricted_shell/errors.rb', line 21

def stream
  @stream
end