Exception: Vexapion::VexapionRuntimeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/vexapion/errors/vexapion_errors.rb

Direct Known Subclasses

Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(i_code, i_msg = nil) ⇒ VexapionRuntimeError

Returns a new instance of VexapionRuntimeError.



12
13
14
15
# File 'lib/vexapion/errors/vexapion_errors.rb', line 12

def initialize(i_code, i_msg = nil)
	@code = i_code
	@message = i_msg
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



9
10
11
# File 'lib/vexapion/errors/vexapion_errors.rb', line 9

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



10
11
12
# File 'lib/vexapion/errors/vexapion_errors.rb', line 10

def message
  @message
end

Instance Method Details

#to_sObject



17
18
19
# File 'lib/vexapion/errors/vexapion_errors.rb', line 17

def to_s
 @message
end