Exception: RMasmError

Inherits:
Exception show all
Defined in:
lib/rmasm/error.rb

Overview

Base exception class for all syntax errors in RMasm

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, *args) ⇒ RMasmError

Returns a new instance of RMasmError.



22
23
24
25
# File 'lib/rmasm/error.rb', line 22

def initialize(code, *args)
  @code = code
  @args = args    
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



20
21
22
# File 'lib/rmasm/error.rb', line 20

def args
  @args
end

#codeObject

Returns the value of attribute code.



20
21
22
# File 'lib/rmasm/error.rb', line 20

def code
  @code
end