Class: Neo4j::Driver::Types::UnsupportedType

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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, message = nil)
  @name = name
  @min_protocol_version = "#{major}.#{minor}"
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



13
14
15
# File 'lib/neo4j/driver/types/unsupported_type.rb', line 13

def message
  @message
end

#min_protocol_versionObject (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

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/neo4j/driver/types/unsupported_type.rb', line 13

def name
  @name
end