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.
56 57 58 59 60 |
# File 'lib/gcloud/datastore/errors.rb', line 56 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)
48 49 50 |
# File 'lib/gcloud/datastore/errors.rb', line 48 def commit_error @commit_error end |
#rollback_error ⇒ Object (readonly)
An error that occurred within the transaction. (optional)
53 54 55 |
# File 'lib/gcloud/datastore/errors.rb', line 53 def rollback_error @rollback_error end |