Exception: Vmix::Error

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

Overview

Custom error class for rescuing from all Oas errors

Direct Known Subclasses

InvalidMethod

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, error_code)
  @error_code = error_code
  super message
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



4
5
6
# File 'lib/vmix/error.rb', line 4

def error_code
  @error_code
end