Exception: Marty::DataImporterError
- Inherits:
-
StandardError
- Object
- StandardError
- Marty::DataImporterError
- Defined in:
- lib/marty/data_importer.rb
Instance Attribute Summary collapse
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
Instance Method Summary collapse
-
#initialize(message, lines) ⇒ DataImporterError
constructor
A new instance of DataImporterError.
Constructor Details
#initialize(message, lines) ⇒ DataImporterError
Returns a new instance of DataImporterError.
5 6 7 8 9 10 11 |
# File 'lib/marty/data_importer.rb', line 5 def initialize(, lines) msg = lines && lines.respond_to?(:join) ? "#{} - lines: #{lines.join(',')}" : super(msg) @lines = lines end |
Instance Attribute Details
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
3 4 5 |
# File 'lib/marty/data_importer.rb', line 3 def lines @lines end |