Method: Neo4j::Core::CypherSession::CypherError#initialize
- Defined in:
- lib/neo4j/core/cypher_session/adaptors.rb
#initialize(code = nil, original_message = nil, stack_trace = nil) ⇒ CypherError
Returns a new instance of CypherError.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/neo4j/core/cypher_session/adaptors.rb', line 14 def initialize(code = nil, = nil, stack_trace = nil) @code = code @original_message = @stack_trace = stack_trace msg = <<-ERROR Cypher error: #{ANSI::CYAN}#{code}#{ANSI::CLEAR}: #{} #{stack_trace} ERROR super(msg) end |