Exception: Spider::Model::Mappers::SchemaSyncUnsafeConversion
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Spider::Model::Mappers::SchemaSyncUnsafeConversion
- 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
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
Instance Method Summary collapse
-
#initialize(fields) ⇒ SchemaSyncUnsafeConversion
constructor
A new instance of SchemaSyncUnsafeConversion.
- #to_s ⇒ Object
Constructor Details
#initialize(fields) ⇒ SchemaSyncUnsafeConversion
Returns a new instance of SchemaSyncUnsafeConversion.
1262 1263 1264 |
# File 'lib/spiderfw/model/mappers/db_mapper.rb', line 1262 def initialize(fields) @fields = fields end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
1261 1262 1263 |
# File 'lib/spiderfw/model/mappers/db_mapper.rb', line 1261 def fields @fields end |
Instance Method Details
#to_s ⇒ Object
1265 1266 1267 |
# File 'lib/spiderfw/model/mappers/db_mapper.rb', line 1265 def to_s "Unsafe conversion on fields #{fields.join(', ')}" end |