Exception: Agent::SessionContext::SubprocessRunner::OutputLimitError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/agent/session_context/subprocess_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stream:, max_output_bytes:) ⇒ OutputLimitError

Returns a new instance of OutputLimitError.



26
27
28
29
30
# File 'lib/agent/session_context/subprocess_runner.rb', line 26

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

Instance Attribute Details

#max_output_bytes ⇒ Object (readonly)

Returns the value of attribute max_output_bytes.



24
25
26
# File 'lib/agent/session_context/subprocess_runner.rb', line 24

def max_output_bytes
  @max_output_bytes
end

#stream ⇒ Object (readonly)

Returns the value of attribute stream.



24
25
26
# File 'lib/agent/session_context/subprocess_runner.rb', line 24

def stream
  @stream
end