Exception: Sped2DB::SpedError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/sped2db/sped_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, line, lineno = nil) ⇒ SpedError

Returns a new instance of SpedError.



5
6
7
8
9
# File 'lib/sped2db/sped_error.rb', line 5

def initialize(msg, line, lineno = nil)
  super msg
  @line = line
  @lineno = lineno
end

Instance Attribute Details

#lineObject

Returns the value of attribute line.



3
4
5
# File 'lib/sped2db/sped_error.rb', line 3

def line
  @line
end

#linenoObject

Returns the value of attribute lineno.



3
4
5
# File 'lib/sped2db/sped_error.rb', line 3

def lineno
  @lineno
end