Exception: Marcdouane::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, line_number) ⇒ Error

Returns a new instance of Error.



10
11
12
13
14
15
# File 'lib/marcdouane.rb', line 10

def initialize(msg, line_number)
  @msg = msg
  @line_number = line_number

  super(@msg)
end

Instance Attribute Details

#line_numberObject (readonly)

Returns the value of attribute line_number.



8
9
10
# File 'lib/marcdouane.rb', line 8

def line_number
  @line_number
end

#msgObject (readonly)

Returns the value of attribute msg.



8
9
10
# File 'lib/marcdouane.rb', line 8

def msg
  @msg
end