Class: ArcFurnace::StdoutErrorHandler
- Inherits:
-
ErrorHandler
- Object
- ErrorHandler
- ArcFurnace::StdoutErrorHandler
- Defined in:
- lib/arc-furnace/stdout_error_handler.rb
Instance Method Summary collapse
-
#duplicate_primary_key(duplicate_row:, key:, node_id:) ⇒ Object
Called when a hash node has duplicate source rows.
-
#missing_hash_key(key:, source_row:, node_id:) ⇒ Object
Called during a join operation when the hash is missing a value for the join key.
-
#missing_join_key(source_row:, node_id:) ⇒ Object
Called during a join operation when a source row is missing a value for the join key.
-
#missing_primary_key(source_row:, node_id:) ⇒ Object
Called when a hash node is missing a primary key during the build process.
Instance Method Details
#duplicate_primary_key(duplicate_row:, key:, node_id:) ⇒ Object
Called when a hash node has duplicate source rows
22 23 24 |
# File 'lib/arc-furnace/stdout_error_handler.rb', line 22 def duplicate_primary_key(duplicate_row:, key:, node_id:) puts "Duplicate primary key in '#{duplicate_row}' for key '#{key}' in #{node_id}" end |
#missing_hash_key(key:, source_row:, node_id:) ⇒ Object
Called during a join operation when the hash is missing a value for the join key.
12 13 14 |
# File 'lib/arc-furnace/stdout_error_handler.rb', line 12 def missing_hash_key(key:, source_row:, node_id:) puts "Missing hash key '#{key}' in join for #{node_id}" end |
#missing_join_key(source_row:, node_id:) ⇒ Object
Called during a join operation when a source row is missing a value for the join key.
7 8 9 |
# File 'lib/arc-furnace/stdout_error_handler.rb', line 7 def missing_join_key(source_row:, node_id:) puts "Missing join key in #{source_row} for #{node_id}" end |
#missing_primary_key(source_row:, node_id:) ⇒ Object
Called when a hash node is missing a primary key during the build process.
17 18 19 |
# File 'lib/arc-furnace/stdout_error_handler.rb', line 17 def missing_primary_key(source_row:, node_id:) puts "Missing primary key in '#{source_row}' for #{node_id}" end |