Exception: Kwaff::AssertionError

Inherits:
KwaffError
  • Object
show all
Defined in:
lib/kwaff/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(linenum, msg = nil) ⇒ AssertionError

Returns a new instance of AssertionError.



17
18
19
# File 'lib/kwaff/errors.rb', line 17

def initialize(linenum, msg=nil)
   super("assertion error: #{linenum}" + (msg ? ": msg=#{msg};" : ""))
end