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(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(message = nil, code: nil, suppressed: nil,
               gql_status: nil, status_description: nil,
               classification: nil, raw_classification: nil,
               diagnostic_record: nil, gql_cause: nil)
  super(message)
  @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

#classificationObject (readonly)

Returns the value of attribute classification.



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

def classification
  @classification
end

#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

#diagnostic_recordObject (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_causeObject (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_statusObject (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_classificationObject (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_descriptionObject (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

#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(*exceptions) ⇒ Object



25
26
27
# File 'lib/neo4j/driver/exceptions/neo4j_exception.rb', line 25

def add_suppressed(*exceptions)
  @suppressed.concat(exceptions)
end