Exception: Spree::Translations::Batch::EntryError
- Inherits:
-
StandardError
- Object
- StandardError
- Spree::Translations::Batch::EntryError
- Defined in:
- app/models/spree/translations/batch.rb
Overview
Raised when an entry can't be processed — unknown/non-translatable
resource type, a record missing in the current store, or an invalid
save. Carries the entry index so the caller can map the error back to
the offending row.
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
Instance Method Summary collapse
-
#initialize(message, index) ⇒ EntryError
constructor
A new instance of EntryError.
Constructor Details
#initialize(message, index) ⇒ EntryError
Returns a new instance of EntryError.
31 32 33 34 |
# File 'app/models/spree/translations/batch.rb', line 31 def initialize(, index) @index = index super() end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
29 30 31 |
# File 'app/models/spree/translations/batch.rb', line 29 def index @index end |