Exception: Delorean::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Delorean::ParseError
- Defined in:
- lib/delorean/error.rb
Overview
Parse Errors
Direct Known Subclasses
BadCallError, ImportError, RecursionError, RedefinedError, UndefinedError, UndefinedFunctionError, UndefinedNodeError
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
Instance Method Summary collapse
-
#initialize(message, module_name, line) ⇒ ParseError
constructor
A new instance of ParseError.
- #to_s ⇒ Object
Constructor Details
#initialize(message, module_name, line) ⇒ ParseError
10 11 12 13 14 |
# File 'lib/delorean/error.rb', line 10 def initialize(, module_name, line) super() @line = line @module_name = module_name end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
8 9 10 |
# File 'lib/delorean/error.rb', line 8 def line @line end |
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name.
8 9 10 |
# File 'lib/delorean/error.rb', line 8 def module_name @module_name end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/delorean/error.rb', line 16 def to_s super + " #{module_name}:#{line}" end |