Exception: OllamaAgent::Topology::Extractors::RubySemanticExtractor::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- OllamaAgent::Topology::Extractors::RubySemanticExtractor::ParseError
- Defined in:
- lib/ollama_agent/topology/extractors/ruby_semantic_extractor.rb
Overview
Wraps Prism parse failures so callers can log or surface diagnostics.
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(file_path, messages) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(file_path, messages) ⇒ ParseError
Returns a new instance of ParseError.
16 17 18 19 20 |
# File 'lib/ollama_agent/topology/extractors/ruby_semantic_extractor.rb', line 16 def initialize(file_path, ) super("parse failed: #{file_path}") @file_path = file_path @messages = Array() end |
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
14 15 16 |
# File 'lib/ollama_agent/topology/extractors/ruby_semantic_extractor.rb', line 14 def file_path @file_path end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
14 15 16 |
# File 'lib/ollama_agent/topology/extractors/ruby_semantic_extractor.rb', line 14 def @messages end |