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.
214 215 216 217 218 219 |
# File 'lib/applocale/Util/error_util.rb', line 214 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.
212 213 214 |
# File 'lib/applocale/Util/error_util.rb', line 212 def key @key end |
Instance Method Details
#message ⇒ Object
221 222 223 |
# File 'lib/applocale/Util/error_util.rb', line 221 def "InvalidKey [#{self.key}] - #{self.msg}" end |