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.
159 160 161 162 163 164 165 166 167 |
# File 'lib/solid_objects/errors.rb', line 159 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)
156 157 158 |
# File 'lib/solid_objects/errors.rb', line 156 def actor_id @actor_id end |
#actor_type ⇒ Object (readonly)
156 157 158 |
# File 'lib/solid_objects/errors.rb', line 156 def actor_type @actor_type end |
#message_name ⇒ Object (readonly)
156 157 158 |
# File 'lib/solid_objects/errors.rb', line 156 def @message_name end |