Exception: Tracksperanto::Pipeline::NoTrackersRecoveredError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/pipeline/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(importer) ⇒ NoTrackersRecoveredError

Returns a new instance of NoTrackersRecoveredError.



19
20
21
22
23
# File 'lib/pipeline/base.rb', line 19

def initialize(importer)
  if importer.class.known_snags
    @snags = "Also note that this particular format (%s) has the following snags: %s" % [importer.const_name, importer.class.known_snags]
  end
end

Instance Method Details

#messageObject



25
26
27
28
29
30
31
# File 'lib/pipeline/base.rb', line 25

def message;
  [
    "Could not recover any non-empty trackers from this file.",
    "Wrong import format maybe?",
    @snags
  ].join("\n")
end