Exception: OllamaAgent::Topology::Extractors::RubySemanticExtractor::ParseError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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, messages)
  super("parse failed: #{file_path}")
  @file_path = file_path
  @messages = Array(messages)
end

Instance Attribute Details

#file_pathObject (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

#messagesObject (readonly)

Returns the value of attribute messages.



14
15
16
# File 'lib/ollama_agent/topology/extractors/ruby_semantic_extractor.rb', line 14

def messages
  @messages
end