Exception: XLSXToHTML::ExpectedDataNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/xlsx_to_html/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(data = nil) ⇒ ExpectedDataNotFound

Returns a new instance of ExpectedDataNotFound.



3
4
5
# File 'lib/xlsx_to_html/exceptions.rb', line 3

def initialize(data = nil)
  @data = data
end

Instance Method Details

#messageObject



7
8
9
10
# File 'lib/xlsx_to_html/exceptions.rb', line 7

def message
  msg = 'Expected data was not found'
  msg ? "#{msg}: #{@data}" : msg
end