Exception: Spree::Translations::Batch::EntryError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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(message, index)
  @index = index
  super(message)
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



29
30
31
# File 'app/models/spree/translations/batch.rb', line 29

def index
  @index
end