Exception: Deadfire::ImportException

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

Instance Method Summary collapse

Constructor Details

#initialize(filename = "", lineno = "") ⇒ ImportException

Returns a new instance of ImportException.



19
20
21
22
23
24
25
26
27
# File 'lib/deadfire/errors.rb', line 19

def initialize(filename = "", lineno = "")
  msg = if filename
    "Error importing file: `#{filename}` line: #{lineno}"
  else
    "Error importing file."
  end

  super(msg)
end