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.



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

#keyObject

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

#messageObject



204
205
206
# File 'lib/applocale/Util/error_util.rb', line 204

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