Exception: Ejs::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ejs/parse_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(failure_reason, failure_line, failure_column) ⇒ ParseError

Returns a new instance of ParseError.



4
5
6
7
8
9
# File 'lib/ejs/parse_error.rb', line 4

def initialize(failure_reason, failure_line, failure_column)
  @failure_reason = failure_reason
  @failure_line = failure_line
  @failure_column = failure_column
  super(@failure_reason)
end

Instance Attribute Details

#failure_columnObject (readonly)

Returns the value of attribute failure_column.



3
4
5
# File 'lib/ejs/parse_error.rb', line 3

def failure_column
  @failure_column
end

#failure_lineObject (readonly)

Returns the value of attribute failure_line.



3
4
5
# File 'lib/ejs/parse_error.rb', line 3

def failure_line
  @failure_line
end

#failure_reasonObject (readonly)

Returns the value of attribute failure_reason.



3
4
5
# File 'lib/ejs/parse_error.rb', line 3

def failure_reason
  @failure_reason
end