Class: Neo4j::Driver::Types::UnsupportedType
- Inherits:
-
Object
- Object
- Neo4j::Driver::Types::UnsupportedType
- Defined in:
- lib/neo4j/driver/types/unsupported_type.rb
Overview
A value whose Bolt struct type is newer than this driver understands (Bolt 6.0+ can push forward-compat markers, struct signature 0x3F). The driver can't materialise the real value, but it must not crash — it surfaces the type's name, the protocol version that introduced it, and an optional server message so callers can react. Mirrors the Java driver's UnsupportedType.
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#min_protocol_version ⇒ Object
readonly
Returns the value of attribute min_protocol_version.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, major, minor, message = nil) ⇒ UnsupportedType
constructor
major/minorare the wire ints (e.g. 6, 10); expose them joined as "major.minor" the way testkit / the Java driver report it.
Constructor Details
#initialize(name, major, minor, message = nil) ⇒ UnsupportedType
major/minor are the wire ints (e.g. 6, 10); expose them joined as
"major.minor" the way testkit / the Java driver report it.
17 18 19 20 21 |
# File 'lib/neo4j/driver/types/unsupported_type.rb', line 17 def initialize(name, major, minor, = nil) @name = name @min_protocol_version = "#{major}.#{minor}" @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
13 14 15 |
# File 'lib/neo4j/driver/types/unsupported_type.rb', line 13 def @message end |
#min_protocol_version ⇒ Object (readonly)
Returns the value of attribute min_protocol_version.
13 14 15 |
# File 'lib/neo4j/driver/types/unsupported_type.rb', line 13 def min_protocol_version @min_protocol_version end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/neo4j/driver/types/unsupported_type.rb', line 13 def name @name end |