Exception: Braingasm::ParsingError

Inherits:
BraingasmError show all
Defined in:
lib/braingasm/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line = nil, column = nil) ⇒ ParsingError

Returns a new instance of ParsingError.



10
11
12
13
# File 'lib/braingasm/errors.rb', line 10

def initialize(line=nil, column=nil)
  @line = line
  @column = column
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



9
10
11
# File 'lib/braingasm/errors.rb', line 9

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



9
10
11
# File 'lib/braingasm/errors.rb', line 9

def line
  @line
end

Instance Method Details

#typeObject



15
16
17
# File 'lib/braingasm/errors.rb', line 15

def type
  "#{super} [line #@line, col #@column]"
end