Exception: LiquidXlsx::TemplateSyntaxError

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, tag: nil) ⇒ TemplateSyntaxError

Returns a new instance of TemplateSyntaxError.



9
10
11
12
13
14
15
# File 'lib/liquid_xlsx/errors.rb', line 9

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

Instance Attribute Details

#cellObject (readonly)

Returns the value of attribute cell.



7
8
9
# File 'lib/liquid_xlsx/errors.rb', line 7

def cell
  @cell
end

#rowObject (readonly)

Returns the value of attribute row.



7
8
9
# File 'lib/liquid_xlsx/errors.rb', line 7

def row
  @row
end

#sheetObject (readonly)

Returns the value of attribute sheet.



7
8
9
# File 'lib/liquid_xlsx/errors.rb', line 7

def sheet
  @sheet
end

#tagObject (readonly)

Returns the value of attribute tag.



7
8
9
# File 'lib/liquid_xlsx/errors.rb', line 7

def tag
  @tag
end