Exception: Evoasm::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/evoasm/error.rb

Overview

Represents an low-level error (originating from the backend library).

Instance Attribute Summary collapse

Instance Attribute Details

#codeSymbol (readonly)

Returns the error code

Returns:

  • (Symbol)

    the error code



12
13
14
# File 'lib/evoasm/error.rb', line 12

def code
  @code
end

#filenameString (readonly)

Returns the filename of the source file this error occurred in

Returns:

  • (String)

    the filename of the source file this error occurred in



15
16
17
# File 'lib/evoasm/error.rb', line 15

def filename
  @filename
end

#lineInteger (readonly)

Returns the line number at which this error occurred

Returns:

  • (Integer)

    the line number at which this error occurred



6
7
8
# File 'lib/evoasm/error.rb', line 6

def line
  @line
end

#typeSymbol (readonly)

Returns the error type

Returns:

  • (Symbol)

    the error type



9
10
11
# File 'lib/evoasm/error.rb', line 9

def type
  @type
end