Exception: JanusGateway::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code, error_info) ⇒ Error

Returns a new instance of Error.

Parameters:

  • error_code (Integer)
  • error_info (String)


11
12
13
14
15
16
# File 'lib/janus_gateway/error.rb', line 11

def initialize(error_code, error_info)
  @code = error_code
  @info = error_info

  super("<Code: #{code}> <Info: #{info}>")
end

Instance Attribute Details

#codeInteger (readonly)

Returns:

  • (Integer)


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

def code
  @code
end

#infoString (readonly)

Returns:

  • (String)


7
8
9
# File 'lib/janus_gateway/error.rb', line 7

def info
  @info
end