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
- #message_name ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(actor_type:, actor_id:, message_name:) ⇒ SyncInsideTransaction
constructor
A new instance of SyncInsideTransaction.
Constructor Details
#initialize(actor_type:, actor_id:, message_name:) ⇒ SyncInsideTransaction
Returns a new instance of SyncInsideTransaction.
147 148 149 150 151 152 153 154 155 |
# File 'lib/solid_objects/errors.rb', line 147 def initialize(actor_type:, actor_id:, message_name:) @actor_type = actor_type @actor_id = actor_id @message_name = super( "cannot synchronously invoke #{actor_type}(#{actor_id.inspect}).#{} " \ "inside an open database transaction; call it before the transaction or enqueue it with async" ) end |
Instance Attribute Details
#actor_id ⇒ Object (readonly)
144 145 146 |
# File 'lib/solid_objects/errors.rb', line 144 def actor_id @actor_id end |
#actor_type ⇒ Object (readonly)
144 145 146 |
# File 'lib/solid_objects/errors.rb', line 144 def actor_type @actor_type end |
#message_name ⇒ Object (readonly)
144 145 146 |
# File 'lib/solid_objects/errors.rb', line 144 def @message_name end |