Exception: MilkTea::CBackendError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject (readonly)

Returns the value of attribute column.



17
18
19
# File 'lib/milk_tea/core/c_backend.rb', line 17

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



17
18
19
# File 'lib/milk_tea/core/c_backend.rb', line 17

def line
  @line
end

#pathObject (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

#codeObject



26
27
28
# File 'lib/milk_tea/core/c_backend.rb', line 26

def code
  "backend/internal"
end