Exception: XLSXToHTML::ExpectedDataNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- XLSXToHTML::ExpectedDataNotFound
- Defined in:
- lib/xlsx_to_html/exceptions.rb
Instance Method Summary collapse
-
#initialize(data = nil) ⇒ ExpectedDataNotFound
constructor
A new instance of ExpectedDataNotFound.
- #message ⇒ Object
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
#message ⇒ Object
7 8 9 10 |
# File 'lib/xlsx_to_html/exceptions.rb', line 7 def msg = 'Expected data was not found' msg ? "#{msg}: #{@data}" : msg end |