Exception: Consolle::Errors::PromptDetectionError

Inherits:
Error
  • Object
show all
Defined in:
lib/consolle/errors.rb

Overview

Prompt detection failure with diagnostic information

Instance Attribute Summary collapse

Instance Method Summary collapse

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(build_message(timeout))
end

Instance Attribute Details

#config_pathObject (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_patternsObject (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_outputObject (readonly)

Returns the value of attribute received_output.



44
45
46
# File 'lib/consolle/errors.rb', line 44

def received_output
  @received_output
end