Exception: MilkTea::ModuleLoadError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/milk_tea/core/module_loader/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, path:) ⇒ ModuleLoadError

Returns a new instance of ModuleLoadError.



7
8
9
10
# File 'lib/milk_tea/core/module_loader/errors.rb', line 7

def initialize(message, path:)
  @path = path
  super("#{message}: #{path}")
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



5
6
7
# File 'lib/milk_tea/core/module_loader/errors.rb', line 5

def path
  @path
end

Instance Method Details

#codeObject



12
13
14
# File 'lib/milk_tea/core/module_loader/errors.rb', line 12

def code
  "module/error"
end