Exception: Applocale::ErrorUtil::ParseLocalizedError::InvalidKey
- Inherits:
-
ParseLocalizedError
- Object
- StandardError
- CommonError
- ParseLocalizedError
- Applocale::ErrorUtil::ParseLocalizedError::InvalidKey
- Defined in:
- lib/applocale/Util/error_util.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
Attributes inherited from ParseLocalizedError
Instance Method Summary collapse
-
#initialize(key, file, lang, row_no) ⇒ InvalidKey
constructor
A new instance of InvalidKey.
- #message ⇒ Object
Methods inherited from ParseLocalizedError
Methods inherited from CommonError
Constructor Details
#initialize(key, file, lang, row_no) ⇒ InvalidKey
Returns a new instance of InvalidKey.
197 198 199 200 201 202 |
# File 'lib/applocale/Util/error_util.rb', line 197 def initialize(key, file, lang, row_no) @key = key @file = file @lang = lang @row_no = row_no end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
195 196 197 |
# File 'lib/applocale/Util/error_util.rb', line 195 def key @key end |
Instance Method Details
#message ⇒ Object
204 205 206 |
# File 'lib/applocale/Util/error_util.rb', line 204 def "InvalidKey [#{self.key}] - #{self.msg}" end |