Exception: Gcloud::Datastore::TransactionError

Inherits:
Error
  • Object
show all
Defined in:
lib/gcloud/datastore/errors.rb

Overview

# TransactionError

General error for Transaction problems.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

from_error, klass_for

Constructor Details

#initialize(message, inner = nil) ⇒ TransactionError

Returns a new instance of TransactionError.



72
73
74
75
# File 'lib/gcloud/datastore/errors.rb', line 72

def initialize message, inner = nil
  super(message)
  @inner = inner
end

Instance Attribute Details

#innerObject (readonly)

An error that occurred within the transaction. (optional)



69
70
71
# File 'lib/gcloud/datastore/errors.rb', line 69

def inner
  @inner
end