Exception: Applocale::ErrorUtil::ParseLocalizedError::InvalidKey

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

Instance Attribute Summary collapse

Attributes inherited from ParseLocalizedError

#file, #lang, #row_no

Instance Method Summary collapse

Methods inherited from ParseLocalizedError

#msg, #raise, raiseArr

Methods inherited from CommonError

#raise, #to_warn

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

#keyObject

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

#messageObject



221
222
223
# File 'lib/applocale/Util/error_util.rb', line 221

def message
  "InvalidKey [#{self.key}] - #{self.msg}"
end