Exception: MilkTea::ModuleLoadError
- Inherits:
-
StandardError
- Object
- StandardError
- MilkTea::ModuleLoadError
- Defined in:
- lib/milk_tea/core/module_loader/errors.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(message, path:, line: nil, column: nil) ⇒ ModuleLoadError
constructor
A new instance of ModuleLoadError.
Constructor Details
#initialize(message, path:, line: nil, column: nil) ⇒ ModuleLoadError
Returns a new instance of ModuleLoadError.
7 8 9 10 11 12 |
# File 'lib/milk_tea/core/module_loader/errors.rb', line 7 def initialize(, path:, line: nil, column: nil) @path = path @line = line @column = column super("#{}: #{path}") end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
5 6 7 |
# File 'lib/milk_tea/core/module_loader/errors.rb', line 5 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
5 6 7 |
# File 'lib/milk_tea/core/module_loader/errors.rb', line 5 def line @line end |
#path ⇒ Object (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
#code ⇒ Object
14 15 16 |
# File 'lib/milk_tea/core/module_loader/errors.rb', line 14 def code "module/error" end |