Exception: NamedImports::Error::ConstantImportError

Inherits:
ImportError
  • Object
show all
Defined in:
lib/named_imports/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(imported_name, imported_file, importer_file, importer_line) ⇒ ConstantImportError

Returns a new instance of ConstantImportError.



30
31
32
# File 'lib/named_imports/error.rb', line 30

def initialize(imported_name, imported_file, importer_file, importer_line)
  super("Unable to import #{imported_name} from #{imported_file} (import occurs in #{importer_file}:#{importer_line})")
end