Exception: KairosMcp::Daemon::RestrictedShell::OutputTruncated
- Inherits:
-
ShellError
- Object
- StandardError
- ShellError
- KairosMcp::Daemon::RestrictedShell::OutputTruncated
- Defined in:
- lib/kairos_mcp/daemon/restricted_shell/errors.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#stream ⇒ Object
readonly
Returns the value of attribute stream.
Instance Method Summary collapse
-
#initialize(stream, limit) ⇒ OutputTruncated
constructor
A new instance of OutputTruncated.
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
#limit ⇒ Object (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 |
#stream ⇒ Object (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 |