Exception: OBSWS::OBSWSRequestError
- Inherits:
-
OBSWSError
- Object
- StandardError
- OBSWSError
- OBSWS::OBSWSRequestError
- Defined in:
- lib/obsws.rb
Overview
Raised when a request returns an error code
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#req_name ⇒ Object
readonly
Returns the value of attribute req_name.
Instance Method Summary collapse
-
#initialize(req_name, code, comment) ⇒ OBSWSRequestError
constructor
A new instance of OBSWSRequestError.
Constructor Details
#initialize(req_name, code, comment) ⇒ OBSWSRequestError
Returns a new instance of OBSWSRequestError.
31 32 33 34 35 36 37 |
# File 'lib/obsws.rb', line 31 def initialize(req_name, code, comment) @req_name = req_name @code = code = "Request #{@req_name} returned code #{@code}." << " With message: #{comment}" if comment super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
29 30 31 |
# File 'lib/obsws.rb', line 29 def code @code end |
#req_name ⇒ Object (readonly)
Returns the value of attribute req_name.
29 30 31 |
# File 'lib/obsws.rb', line 29 def req_name @req_name end |