Class: Setl::Source

Inherits:
Delegator show all
Defined in:
lib/setl/delegates.rb

Instance Method Summary collapse

Methods inherited from Delegator

#initialize

Constructor Details

This class inherits a constructor from Setl::Delegator

Instance Method Details

#each(&block) ⇒ Object



16
17
18
19
20
21
22
23
24
25
# File 'lib/setl/delegates.rb', line 16

def each(&block)
  item.each(&block)
rescue StandardError => e
  # Allow our errors to go through
  if e.is_a? ETLError
    raise e
  else
    error_handler.(SourceError.new("Failed to read from source", e))
  end
end