"""
    :copyright: © 2019 by the Lin team.
    :license: MIT, see LICENSE for more details.
"""

from lin.exception import APIException


class BookNotFound(APIException):
    code = 404  # http状态码
    msg = '没有找到相关图书'  # 异常信息
    error_code = 80010  # 约定的异常码
    
class RefreshException(APIException):
    code = 401
    msg = "refresh token 获取失败"
    error_code = 10100

class  OpenVPNNotFound(APIException):
    code = 404
    msg = '没有相关用户信息'
    error_code = 10020

class  VirtualIPNotFound(APIException):
    code = 404
    msg = '没有相关IP和MAC信息'
    error_code = 10020
"""
    :copyright: © 2019 by the Lin team.
    :license: MIT, see LICENSE for more details.
"""

from lin.exception import APIException


class BookNotFound(APIException):
    code = 404  # http状态码
    msg = '没有找到相关图书'  # 异常信息
    error_code = 80010  # 约定的异常码
    
class RefreshException(APIException):
    code = 401
    msg = "refresh token 获取失败"
    error_code = 10100

class  OpenVPNNotFound(APIException):
    code = 404
    msg = '没有相关用户信息'
    error_code = 10020

class  VirtualIPNotFound(APIException):
    code = 404
    msg = '没有相关IP和MAC信息'
    error_code = 10020
:copyright: © 2019 by the Lin team.     :license: MIT, see LICENSE for more details. # http状态码 # 异常信息 # 约定的异常码