Exception: Applocale::ErrorUtil::ParseLocalizedError::DuplicateKey
- Inherits:
-
ParseLocalizedError
- Object
- StandardError
- CommonError
- ParseLocalizedError
- Applocale::ErrorUtil::ParseLocalizedError::DuplicateKey
- Defined in:
- lib/applocale/Util/error_util.rb
Instance Attribute Summary collapse
-
#duplicate_rowno ⇒ Object
Returns the value of attribute duplicate_rowno.
-
#key ⇒ Object
Returns the value of attribute key.
Attributes inherited from ParseLocalizedError
Instance Method Summary collapse
-
#initialize(key, duplicate_rowno, file, lang, row_no) ⇒ DuplicateKey
constructor
A new instance of DuplicateKey.
- #message ⇒ Object
Methods inherited from ParseLocalizedError
Methods inherited from CommonError
Constructor Details
#initialize(key, duplicate_rowno, file, lang, row_no) ⇒ DuplicateKey
Returns a new instance of DuplicateKey.
234 235 236 237 238 239 240 |
# File 'lib/applocale/Util/error_util.rb', line 234 def initialize(key, duplicate_rowno, file, lang, row_no) @key = key @duplicate_rowno = duplicate_rowno @file = file @lang = lang @row_no = row_no end |
Instance Attribute Details
#duplicate_rowno ⇒ Object
Returns the value of attribute duplicate_rowno.
232 233 234 |
# File 'lib/applocale/Util/error_util.rb', line 232 def duplicate_rowno @duplicate_rowno end |
#key ⇒ Object
Returns the value of attribute key.
232 233 234 |
# File 'lib/applocale/Util/error_util.rb', line 232 def key @key end |
Instance Method Details
#message ⇒ Object
242 243 244 |
# File 'lib/applocale/Util/error_util.rb', line 242 def "DuplicateKey [#{self.key}] - #{self.msg} : duplicateWithRow: #{self.duplicate_rowno}" end |