Exception: Applocale::ErrorUtil::ParseXlsxError::DuplicateKey
- Inherits:
-
ParseError
- Object
- StandardError
- CommonError
- ParseError
- Applocale::ErrorUtil::ParseXlsxError::DuplicateKey
- Defined in:
- lib/applocale/Util/error_util.rb
Instance Attribute Summary collapse
-
#duplicate_rowno ⇒ Object
Returns the value of attribute duplicate_rowno.
-
#duplicate_sheetname ⇒ Object
Returns the value of attribute duplicate_sheetname.
Attributes inherited from ParseError
Instance Method Summary collapse
-
#initialize(rowinfo, duplicate_sheetname, duplicate_rowno) ⇒ DuplicateKey
constructor
A new instance of DuplicateKey.
- #message ⇒ Object
Methods inherited from ParseError
Methods inherited from CommonError
Constructor Details
#initialize(rowinfo, duplicate_sheetname, duplicate_rowno) ⇒ 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_rowno ⇒ Object
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_sheetname ⇒ Object
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
#message ⇒ Object
148 149 150 |
# File 'lib/applocale/Util/error_util.rb', line 148 def "DuplicateKey [#{self.rowinfo.key_str}] - #{self.msg} : duplicateWithSheet: #{self.duplicate_sheetname} Row: #{self.duplicate_rowno}" end |