Exception: Gcloud::Datastore::TransactionError
- Defined in:
- lib/gcloud/datastore/errors.rb
Overview
# TransactionError
General error for Transaction problems.
Instance Attribute Summary collapse
-
#commit_error ⇒ Object
(also: #inner)
readonly
An error that occurred within the transaction.
-
#rollback_error ⇒ Object
readonly
An error that occurred within the transaction.
Instance Method Summary collapse
-
#initialize(message, commit_error: nil, rollback_error: nil) ⇒ TransactionError
constructor
A new instance of TransactionError.
Methods inherited from Error
Constructor Details
#initialize(message, commit_error: nil, rollback_error: nil) ⇒ TransactionError
Returns a new instance of TransactionError.
77 78 79 80 81 |
# File 'lib/gcloud/datastore/errors.rb', line 77 def initialize , commit_error: nil, rollback_error: nil super() @commit_error = commit_error @rollback_error = rollback_error end |
Instance Attribute Details
#commit_error ⇒ Object (readonly) Also known as: inner
An error that occurred within the transaction. (optional)
69 70 71 |
# File 'lib/gcloud/datastore/errors.rb', line 69 def commit_error @commit_error end |
#rollback_error ⇒ Object (readonly)
An error that occurred within the transaction. (optional)
74 75 76 |
# File 'lib/gcloud/datastore/errors.rb', line 74 def rollback_error @rollback_error end |