Exception: Vmix::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Vmix::Error
- Defined in:
- lib/vmix/error.rb
Overview
Custom error class for rescuing from all Oas errors
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(message, error_code) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, error_code) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/vmix/error.rb', line 6 def initialize(, error_code) @error_code = error_code super end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
4 5 6 |
# File 'lib/vmix/error.rb', line 4 def error_code @error_code end |