rogerxavier's picture
Upload 258 files
0aee47a verified
raw
history blame contribute delete
571 Bytes
"""
bilibili_api.exceptions.NetworkException
网络错误。
"""
from .ApiException import ApiException
class NetworkException(ApiException):
"""
网络错误。
"""
def __init__(self, status: int, msg: str):
"""
Args:
status (int): 状态码。
msg (str): 状态消息。
"""
super().__init__(msg)
self.status = status
self.msg = f"网络错误,状态码:{status} - {msg}。"
def __str__(self):
return self.msg