Exception: Dryml::DrymlException

Inherits:
Exception
  • Object
show all
Defined in:
lib/dryml.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, path = nil, line_num = nil) ⇒ DrymlException

Returns a new instance of DrymlException.



25
26
27
28
29
30
31
# File 'lib/dryml.rb', line 25

def initialize(message, path=nil, line_num=nil)
  if path && line_num
    super(message + " -- at #{path}:#{line_num}")
  else
    super(message)
  end
end