Exception: MilkTea::CBackendError
- Inherits:
-
StandardError
- Object
- StandardError
- MilkTea::CBackendError
- Defined in:
- lib/milk_tea/core/c_backend.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(msg = nil, line: nil, column: nil, path: nil) ⇒ CBackendError
constructor
A new instance of CBackendError.
Constructor Details
#initialize(msg = nil, line: nil, column: nil, path: nil) ⇒ CBackendError
Returns a new instance of CBackendError.
19 20 21 22 23 24 |
# File 'lib/milk_tea/core/c_backend.rb', line 19 def initialize(msg = nil, line: nil, column: nil, path: nil) super(msg) @line = line @column = column @path = path end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
17 18 19 |
# File 'lib/milk_tea/core/c_backend.rb', line 17 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
17 18 19 |
# File 'lib/milk_tea/core/c_backend.rb', line 17 def line @line end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
17 18 19 |
# File 'lib/milk_tea/core/c_backend.rb', line 17 def path @path end |
Instance Method Details
#code ⇒ Object
26 27 28 |
# File 'lib/milk_tea/core/c_backend.rb', line 26 def code "backend/internal" end |