Exception: Neo4j::Driver::Exceptions::Neo4jException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/neo4j/driver/exceptions/neo4j_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Neo4jException

Returns a new instance of Neo4jException.



9
10
11
12
13
14
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 9

def initialize(*args)
  @code = args.shift if args.count > 1
  message = args.shift
  @suppressed = args.shift
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



7
8
9
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 7

def code
  @code
end

#suppressedObject (readonly)

Returns the value of attribute suppressed.



7
8
9
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 7

def suppressed
  @suppressed
end

Instance Method Details

#add_suppressed(exception) ⇒ Object



16
17
18
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 16

def add_suppressed(exception)
  (@suppressed ||= []) << exception
end