紫晴 24038be146
[skip ci] Verifying issues of connection interface (#6047)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>
2021-06-23 20:22:08 +08:00

22 lines
836 B
Python

from enum import Enum
class ErrorCode(Enum):
ErrorOk = 0
Error = 1
ErrorMessage = {ErrorCode.ErrorOk: "",
ErrorCode.Error: "is illegal"}
class ConnectionErrorMessage:
NoHostPort = "connection configuration must contain 'host' and 'port'"
HostType = "Type of 'host' must be str!"
PortType = "Type of port type must be str or int!"
NotHostPort = "Connection configuration must be contained host and port"
AliasExist = "alias of '%s' already creating connections, but the configure is not the same as passed in."
AliasNotExist = "You need to pass in the configuration of the connection named '%s'"
FailConnect = "Fail connecting to server on %s:%s. Timeout"
ConnectExist = "The connection named %s already creating, but passed parameters don't match the configured parameters"