Exception: LiquidXlsx::UnsupportedTemplateError

Inherits:
Error
  • Object
show all
Defined in:
lib/liquid_xlsx/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, sheet: nil, row: nil, cell: nil, block_rows: nil) ⇒ UnsupportedTemplateError

Returns a new instance of UnsupportedTemplateError.



57
58
59
60
61
62
63
# File 'lib/liquid_xlsx/errors.rb', line 57

def initialize(message, sheet: nil, row: nil, cell: nil, block_rows: nil)
  @sheet = sheet
  @row = row
  @cell = cell
  @block_rows = block_rows
  super(build_message(message))
end

Instance Attribute Details

#block_rowsObject (readonly)

Returns the value of attribute block_rows.



55
56
57
# File 'lib/liquid_xlsx/errors.rb', line 55

def block_rows
  @block_rows
end

#cellObject (readonly)

Returns the value of attribute cell.



55
56
57
# File 'lib/liquid_xlsx/errors.rb', line 55

def cell
  @cell
end

#rowObject (readonly)

Returns the value of attribute row.



55
56
57
# File 'lib/liquid_xlsx/errors.rb', line 55

def row
  @row
end

#sheetObject (readonly)

Returns the value of attribute sheet.



55
56
57
# File 'lib/liquid_xlsx/errors.rb', line 55

def sheet
  @sheet
end