Exception: Neo4j::Driver::Exceptions::Neo4jException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Neo4j::Driver::Exceptions::Neo4jException
- Defined in:
- lib/neo4j/driver/exceptions/neo4j_exception.rb
Direct Known Subclasses
ClientException, DatabaseException, DiscoveryException, ProtocolException, ServiceUnavailableException, SessionExpiredException, TransientException
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#suppressed ⇒ Object
readonly
Returns the value of attribute suppressed.
Instance Method Summary collapse
- #add_suppressed(exception) ⇒ Object
-
#initialize(*args) ⇒ Neo4jException
constructor
A new instance of Neo4jException.
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 = args.shift @suppressed = args.shift super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 7 def code @code end |
#suppressed ⇒ Object (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 |