Exception: Deadfire::ImportException
- Inherits:
-
StandardError
- Object
- StandardError
- Deadfire::ImportException
- Defined in:
- lib/deadfire/errors.rb
Instance Method Summary collapse
-
#initialize(filename = "", lineno = "") ⇒ ImportException
constructor
A new instance of ImportException.
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 |