Exception: SolidObjects::ApplicationWriteForbidden
- Inherits:
-
NonRetryableError
- Object
- StandardError
- Error
- NonRetryableError
- SolidObjects::ApplicationWriteForbidden
- 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:) ⇒ ApplicationWriteForbidden
constructor
A new instance of ApplicationWriteForbidden.
Constructor Details
#initialize(actor_type:, actor_id:, message_name:) ⇒ ApplicationWriteForbidden
Returns a new instance of ApplicationWriteForbidden.
178 179 180 181 182 183 184 185 186 |
# File 'lib/solid_objects/errors.rb', line 178 def initialize(actor_type:, actor_id:, message_name:) @actor_type = actor_type @actor_id = actor_id @message_name = super( "#{actor_type}(#{actor_id.inspect}).#{} attempted an Active Record write; " \ "mutate actor state, stage a commit action, or emit a durable effect instead" ) end |
Instance Attribute Details
#actor_id ⇒ Object (readonly)
175 176 177 |
# File 'lib/solid_objects/errors.rb', line 175 def actor_id @actor_id end |
#actor_type ⇒ Object (readonly)
175 176 177 |
# File 'lib/solid_objects/errors.rb', line 175 def actor_type @actor_type end |
#message_name ⇒ Object (readonly)
175 176 177 |
# File 'lib/solid_objects/errors.rb', line 175 def @message_name end |