Exception: Applocale::ErrorUtil::ParseXlsxError::DuplicateKey

Inherits:
ParseError show all
Defined in:
lib/applocale/Util/error_util.rb

Instance Attribute Summary collapse

Attributes inherited from ParseError

#rowinfo

Instance Method Summary collapse

Methods inherited from ParseError

#msg, raiseArr

Methods inherited from CommonError

#raise, #to_warn

Constructor Details

#initialize(rowinfo, duplicate_sheetname, duplicate_rowno) ⇒ DuplicateKey

Returns a new instance of DuplicateKey.



142
143
144
145
146
# File 'lib/applocale/Util/error_util.rb', line 142

def initialize(rowinfo, duplicate_sheetname, duplicate_rowno)
  @rowinfo = rowinfo
  @duplicate_sheetname = duplicate_sheetname
  @duplicate_rowno = duplicate_rowno
end

Instance Attribute Details

#duplicate_rownoObject

Returns the value of attribute duplicate_rowno.



140
141
142
# File 'lib/applocale/Util/error_util.rb', line 140

def duplicate_rowno
  @duplicate_rowno
end

#duplicate_sheetnameObject

Returns the value of attribute duplicate_sheetname.



140
141
142
# File 'lib/applocale/Util/error_util.rb', line 140

def duplicate_sheetname
  @duplicate_sheetname
end

Instance Method Details

#messageObject



148
149
150
# File 'lib/applocale/Util/error_util.rb', line 148

def message
  "DuplicateKey [#{self.rowinfo.key_str}] - #{self.msg} : duplicateWithSheet: #{self.duplicate_sheetname} Row: #{self.duplicate_rowno}"
end