Exception: Consolle::Errors::PromptDetectionError
- Defined in:
- lib/consolle/errors.rb
Overview
Prompt detection failure with diagnostic information
Instance Attribute Summary collapse
-
#config_path ⇒ Object
readonly
Returns the value of attribute config_path.
-
#expected_patterns ⇒ Object
readonly
Returns the value of attribute expected_patterns.
-
#received_output ⇒ Object
readonly
Returns the value of attribute received_output.
Instance Method Summary collapse
-
#initialize(timeout:, received_output:, expected_patterns:, config_path:) ⇒ PromptDetectionError
constructor
A new instance of PromptDetectionError.
Constructor Details
#initialize(timeout:, received_output:, expected_patterns:, config_path:) ⇒ PromptDetectionError
Returns a new instance of PromptDetectionError.
46 47 48 49 50 51 52 |
# File 'lib/consolle/errors.rb', line 46 def initialize(timeout:, received_output:, expected_patterns:, config_path:) @received_output = received_output @expected_patterns = expected_patterns @config_path = config_path super((timeout)) end |
Instance Attribute Details
#config_path ⇒ Object (readonly)
Returns the value of attribute config_path.
44 45 46 |
# File 'lib/consolle/errors.rb', line 44 def config_path @config_path end |
#expected_patterns ⇒ Object (readonly)
Returns the value of attribute expected_patterns.
44 45 46 |
# File 'lib/consolle/errors.rb', line 44 def expected_patterns @expected_patterns end |
#received_output ⇒ Object (readonly)
Returns the value of attribute received_output.
44 45 46 |
# File 'lib/consolle/errors.rb', line 44 def received_output @received_output end |