Exception: Agent::SessionContext::SubprocessRunner::OutputLimitError
- Inherits:
-
StandardError
- Object
- StandardError
- Agent::SessionContext::SubprocessRunner::OutputLimitError
- Defined in:
- lib/agent/session_context/subprocess_runner.rb
Instance Attribute Summary collapse
-
#max_output_bytes ⇒ Object
readonly
Returns the value of attribute max_output_bytes.
-
#stream ⇒ Object
readonly
Returns the value of attribute stream.
Instance Method Summary collapse
-
#initialize(stream:, max_output_bytes:) ⇒ OutputLimitError
constructor
A new instance of OutputLimitError.
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 |