mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
17 lines
498 B
Python
17 lines
498 B
Python
import mishards.exception_codes as codes
|
|
|
|
class BaseException(Exception):
|
|
code = codes.INVALID_CODE
|
|
message = 'BaseException'
|
|
def __init__(self, message=''):
|
|
self.message = self.__class__.__name__ if not message else message
|
|
|
|
class ConnectionConnectError(BaseException):
|
|
code = codes.CONNECT_ERROR_CODE
|
|
|
|
class ConnectionNotFoundError(BaseException):
|
|
code = codes.CONNECTTION_NOT_FOUND_CODE
|
|
|
|
class TableNotFoundError(BaseException):
|
|
code = codes.TABLE_NOT_FOUND_CODE
|