Exception: Spider::Model::Mappers::SchemaSyncUnsafeConversion

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/spiderfw/model/mappers/db_mapper.rb

Overview

Error raised when a conversion results in a potential data loss.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fields) ⇒ SchemaSyncUnsafeConversion

Returns a new instance of SchemaSyncUnsafeConversion.



1418
1419
1420
# File 'lib/spiderfw/model/mappers/db_mapper.rb', line 1418

def initialize(fields)
    @fields = fields
end

Instance Attribute Details

#fieldsObject (readonly)

Returns the value of attribute fields.



1417
1418
1419
# File 'lib/spiderfw/model/mappers/db_mapper.rb', line 1417

def fields
  @fields
end

Instance Method Details

#to_sObject



1421
1422
1423
# File 'lib/spiderfw/model/mappers/db_mapper.rb', line 1421

def to_s
    "Unsafe conversion on fields #{fields.join(', ')}"
end