Exception: SolidObjects::SyncInsideTransaction
- Defined in:
- lib/solid_objects/errors.rb,
sig/generated/lib/solid_objects/errors.rbs
Instance Attribute Summary collapse
- #actor_id ⇒ Object readonly
- #actor_type ⇒ Object readonly
- #operation ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(actor_type:, actor_id:, operation:) ⇒ SyncInsideTransaction
constructor
A new instance of SyncInsideTransaction.
Constructor Details
#initialize(actor_type:, actor_id:, operation:) ⇒ SyncInsideTransaction
Returns a new instance of SyncInsideTransaction.
165 166 167 168 169 170 171 172 173 |
# File 'lib/solid_objects/errors.rb', line 165 def initialize(actor_type:, actor_id:, operation:) @actor_type = actor_type @actor_id = actor_id @operation = operation super( "cannot synchronously invoke #{actor_type}(#{actor_id.inspect}).#{operation} " \ "inside an open database transaction; call it before the transaction or enqueue it with async" ) end |
Instance Attribute Details
#actor_id ⇒ Object (readonly)
162 163 164 |
# File 'lib/solid_objects/errors.rb', line 162 def actor_id @actor_id end |
#actor_type ⇒ Object (readonly)
162 163 164 |
# File 'lib/solid_objects/errors.rb', line 162 def actor_type @actor_type end |
#operation ⇒ Object (readonly)
162 163 164 |
# File 'lib/solid_objects/errors.rb', line 162 def operation @operation end |