Exception: Applocale::ErrorUtil::CannotOpenXlsxFile

Inherits:
CommonError
  • Object
show all
Defined in:
lib/applocale/Util/error_util.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CommonError

#raise, #to_warn

Constructor Details

#initialize(path) ⇒ CannotOpenXlsxFile

Returns a new instance of CannotOpenXlsxFile.



56
57
58
# File 'lib/applocale/Util/error_util.rb', line 56

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



55
56
57
# File 'lib/applocale/Util/error_util.rb', line 55

def path
  @path
end

Instance Method Details

#messageObject



59
60
61
# File 'lib/applocale/Util/error_util.rb', line 59

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