Exception: Neo4jBolt::CypherError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/neo4j_bolt.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, buf = nil) ⇒ CypherError

Returns a new instance of CypherError.



87
88
89
90
# File 'lib/neo4j_bolt.rb', line 87

def initialize(message, buf = nil)
    @message = message
    @buf = buf
end

Instance Method Details

#to_sObject



92
93
94
# File 'lib/neo4j_bolt.rb', line 92

def to_s
    @buf.nil? ? "#{@message}" : "#{@message} at buffer offset #{sprintf('0x%x', @buf.offset)}"
end