Exception: Neo4j::Driver::Exceptions::Value::LossyCoercion

Inherits:
ValueException show all
Defined in:
lib/neo4j/driver/exceptions/value/lossy_coercion.rb

Overview

A LossyCoercion exception indicates that the conversion cannot be achieved without losing precision.

Since:

  • 1.0

Instance Attribute Summary

Attributes inherited from Neo4jException

#code, #suppressed

Instance Method Summary collapse

Methods inherited from ClientException

unable_to_convert

Methods inherited from Neo4jException

#add_suppressed

Constructor Details

#initialize(source_type_name, destination_type_name) ⇒ LossyCoercion

Returns a new instance of LossyCoercion.

Since:

  • 1.0



8
9
10
# File 'lib/neo4j/driver/exceptions/value/lossy_coercion.rb', line 8

def initialize(source_type_name, destination_type_name)
  super("Cannot coerce #{source_type_name} to #{destination_type_name} without losing precision")
end