mirror of https://gitlab.com/litecord/litecord.git
18 lines
425 B
Python
18 lines
425 B
Python
from ..errors import WebsocketClose
|
|
|
|
|
|
class UnknownOPCode(WebsocketClose):
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(*args, **kwargs)
|
|
|
|
# hacky solution to
|
|
# decrease code repetition
|
|
self.args = [4001, self.args[0]]
|
|
|
|
|
|
class DecodeError(WebsocketClose):
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(*args, **kwargs)
|
|
|
|
self.args = [4002, self.args[0]]
|