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.



20
21
22
23
24
25
# File 'lib/milk_tea/core/c_backend.rb', line 20

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.



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

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



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

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

Instance Method Details

#codeObject



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

def code
  "backend/internal"
end