Class: Setl::Source
Instance Method Summary collapse
Methods inherited from Delegator
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 |