Exception: Applocale::ErrorUtil::ParseLocalizedError::InvalidFile

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(path) ⇒ InvalidFile

Returns a new instance of InvalidFile.



163
164
165
# File 'lib/applocale/Util/error_util.rb', line 163

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



162
163
164
# File 'lib/applocale/Util/error_util.rb', line 162

def path
  @path
end

Instance Method Details

#messageObject



166
167
168
# File 'lib/applocale/Util/error_util.rb', line 166

def message
  "Can't open file #{self.path}"
end