mirror of
https://github.com/onyx-and-iris/obsws-ruby.git
synced 2024-11-15 18:50:47 +00:00
rename name to req_name in OBSWSRequestError
patch bump
This commit is contained in:
parent
976c8f19a8
commit
13f57f79f6
@ -115,7 +115,7 @@ If a connection attempt fails or times out an `OBSWSConnectionError` will be rai
|
||||
|
||||
If a request fails an `OBSWSRequestError` will be raised with a status code.
|
||||
|
||||
- The request name and code are retrievable through attributes {OBSWSRequestError}.name and {OBSWSRequestError}.code
|
||||
- The request name and code are retrievable through attributes {OBSWSRequestError}.req_name and {OBSWSRequestError}.code
|
||||
|
||||
For a full list of status codes refer to [Codes](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#requeststatus)
|
||||
|
||||
|
@ -22,10 +22,10 @@ module OBSWS
|
||||
class OBSWSConnectionError < OBSWSError; end
|
||||
|
||||
class OBSWSRequestError < OBSWSError
|
||||
attr_reader :name, :code
|
||||
attr_reader :req_name, :code
|
||||
|
||||
def initialize(name, code, msg)
|
||||
@name = name
|
||||
def initialize(req_name, code, msg)
|
||||
@req_name = name
|
||||
@code = code
|
||||
@msg = msg
|
||||
super(message)
|
||||
|
@ -11,7 +11,7 @@ module OBSWS
|
||||
end
|
||||
|
||||
def patch
|
||||
0
|
||||
1
|
||||
end
|
||||
|
||||
def to_a
|
||||
|
Loading…
Reference in New Issue
Block a user