Exception: Boltless::Errors::TransactionRollbackError
- Inherits:
-
RequestError
- Object
- StandardError
- RequestError
- Boltless::Errors::TransactionRollbackError
- Defined in:
- lib/boltless/errors/transaction_rollback_error.rb
Overview
This exception is raised when we failed to rollback a transaction at the neo4j server, or when another error caused a transaction rollback.
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
We allow to read our details.
Attributes inherited from RequestError
Instance Method Summary collapse
-
#initialize(message, errors: [], response: nil) ⇒ Errors::TransactionRollbackError
constructor
Create a new generic response error instance.
Constructor Details
#initialize(message, errors: [], response: nil) ⇒ Errors::TransactionRollbackError
Create a new generic response error instance.
19 20 21 22 23 |
# File 'lib/boltless/errors/transaction_rollback_error.rb', line 19 def initialize(, errors: [], response: nil) @errors = Array(errors) += "\n\n#{@errors.map { |err| "* #{err.}" }.join("\n")}" super(, response: response) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
We allow to read our details
9 10 11 |
# File 'lib/boltless/errors/transaction_rollback_error.rb', line 9 def errors @errors end |