Exception: Vexapion::VexapionRuntimeError
- Inherits:
-
StandardError
- Object
- StandardError
- Vexapion::VexapionRuntimeError
- Defined in:
- lib/vexapion/errors/vexapion_errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(i_code, i_msg = nil) ⇒ VexapionRuntimeError
constructor
A new instance of VexapionRuntimeError.
- #to_s ⇒ Object
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/vexapion/errors/vexapion_errors.rb', line 9 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
10 11 12 |
# File 'lib/vexapion/errors/vexapion_errors.rb', line 10 def @message end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/vexapion/errors/vexapion_errors.rb', line 17 def to_s @message end |