# coding=utf8
class BaseError(Exception):
def __init__(self, msg=None):
self.msg = msg
def __str__(self):
return "Error Message:{}".format(self.msg)
class QueryElementError(BaseError):
def __init__(self, msg=None):
self.msg = msg or "查询元素失败"
class ElementError(BaseError):
pass
class ErrorKey(BaseError):
pass
转载于:https://my.oschina.net/u/2474096/blog/1537469