Exception: MoCo::CompileError

Inherits:
Error
  • Object
show all
Defined in:
lib/moco/compile_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, file) ⇒ CompileError

Returns a new instance of CompileError.



10
11
12
13
14
15
16
# File 'lib/moco/compile_error.rb', line 10

def initialize(error, file)
  @error  = error
  @file   = file
  @line   = get_line
  @column = get_column
  super(get_message)
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



8
9
10
# File 'lib/moco/compile_error.rb', line 8

def column
  @column
end

#errorObject (readonly)

Returns the value of attribute error.



5
6
7
# File 'lib/moco/compile_error.rb', line 5

def error
  @error
end

#fileObject (readonly)

Returns the value of attribute file.



6
7
8
# File 'lib/moco/compile_error.rb', line 6

def file
  @file
end

#lineObject (readonly)

Returns the value of attribute line.



7
8
9
# File 'lib/moco/compile_error.rb', line 7

def line
  @line
end