Exception: JanusGateway::Error
- Inherits:
-
StandardError
- Object
- StandardError
- JanusGateway::Error
- Defined in:
- lib/janus_gateway/error.rb
Instance Attribute Summary collapse
- #code ⇒ Integer readonly
- #info ⇒ String readonly
Instance Method Summary collapse
-
#initialize(error_code, error_info) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error_code, error_info) ⇒ Error
Returns a new instance of Error.
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
#code ⇒ Integer (readonly)
4 5 6 |
# File 'lib/janus_gateway/error.rb', line 4 def code @code end |
#info ⇒ String (readonly)
7 8 9 |
# File 'lib/janus_gateway/error.rb', line 7 def info @info end |