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
-
#classification ⇒ Object
readonly
Returns the value of attribute classification.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#diagnostic_record ⇒ Object
readonly
Returns the value of attribute diagnostic_record.
-
#gql_cause ⇒ Object
readonly
Returns the value of attribute gql_cause.
-
#gql_status ⇒ Object
readonly
Returns the value of attribute gql_status.
-
#raw_classification ⇒ Object
readonly
Returns the value of attribute raw_classification.
-
#status_description ⇒ Object
readonly
Returns the value of attribute status_description.
-
#suppressed ⇒ Object
readonly
Returns the value of attribute suppressed.
Instance Method Summary collapse
- #add_suppressed(*exceptions) ⇒ Object
-
#initialize(message = nil, code: nil, suppressed: nil, gql_status: nil, status_description: nil, classification: nil, raw_classification: nil, diagnostic_record: nil, gql_cause: nil) ⇒ Neo4jException
constructor
A new instance of Neo4jException.
Constructor Details
#initialize(message = nil, code: nil, suppressed: nil, gql_status: nil, status_description: nil, classification: nil, raw_classification: nil, diagnostic_record: nil, gql_cause: nil) ⇒ Neo4jException
Returns a new instance of Neo4jException.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 10 def initialize( = nil, code: nil, suppressed: nil, gql_status: nil, status_description: nil, classification: nil, raw_classification: nil, diagnostic_record: nil, gql_cause: nil) super() @code = code @suppressed = Array(suppressed) @gql_status = gql_status @status_description = status_description @classification = classification @raw_classification = raw_classification @diagnostic_record = diagnostic_record @gql_cause = gql_cause end |
Instance Attribute Details
#classification ⇒ Object (readonly)
Returns the value of attribute classification.
7 8 9 |
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 7 def classification @classification end |
#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 |
#diagnostic_record ⇒ Object (readonly)
Returns the value of attribute diagnostic_record.
7 8 9 |
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 7 def diagnostic_record @diagnostic_record end |
#gql_cause ⇒ Object (readonly)
Returns the value of attribute gql_cause.
7 8 9 |
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 7 def gql_cause @gql_cause end |
#gql_status ⇒ Object (readonly)
Returns the value of attribute gql_status.
7 8 9 |
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 7 def gql_status @gql_status end |
#raw_classification ⇒ Object (readonly)
Returns the value of attribute raw_classification.
7 8 9 |
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 7 def raw_classification @raw_classification end |
#status_description ⇒ Object (readonly)
Returns the value of attribute status_description.
7 8 9 |
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 7 def status_description @status_description 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(*exceptions) ⇒ Object
25 26 27 |
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 25 def add_suppressed(*exceptions) @suppressed.concat(exceptions) end |