Exception: Neo4jBolt::CypherError
- Inherits:
-
StandardError
- Object
- StandardError
- Neo4jBolt::CypherError
- Defined in:
- lib/neo4j_bolt.rb
Instance Method Summary collapse
-
#initialize(message, buf = nil) ⇒ CypherError
constructor
A new instance of CypherError.
- #to_s ⇒ Object
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(, buf = nil) @message = @buf = buf end |
Instance Method Details
#to_s ⇒ Object
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 |