Files
controller-wisetopdataserver/python/biopro/text.py
T
2021-12-20 14:52:55 +08:00

69 lines
2.4 KiB
Python

"""uniform message header."""
# general error message
ILLEGAL_STATE = 'illegal state '
ILLEGAL_ARGUMENT = 'illegal argument '
NOT_IMPLEMENTED = 'not implemented yet '
# socket error message
SOCKET_NOT_OPEN = 'socket not open'
# server message
SERVER_INITIALIZATION = 'server initialization'
SERVER_AVAILABLE = 'server available'
SERVER_SHUTDOWN = 'server shutdown'
SERVER_RESTART = 'server restart'
# server error message
SERVER_NOT_AVAILABLE = 'server not available'
SERVER_NO_RESPONSE = 'server no response'
SERVER_RESET_FAIL = 'server reset fail'
SERVER_RESTART_FAIL = 'server restart fail'
SERVER_NOT_ALIVE = 'server not alive'
SERVER_NOT_INIT = 'server not init'
# server command error message
DEVICE_NOT_FOUND = 'device not found' # used for those device which is not connected
LIBRARY_NOT_FOUND = 'device library not found'
CHIP_NOT_FOUND = 'chip not found' # used for those device/chip which is connected
CHIP_NOT_START = 'chip not started' # used for those chip is not started, whose channel is not initialized
CHANNEL_NOT_FOUND = 'channel not found : '
PARAMETER_NOT_FOUND = 'parameter not found : '
COMMAND_UNKNOWN = 'unknown command'
INSTRUCTION_UNKNOWN = 'unknown instruction'
RESPONSE_TIMEOUT = 'response timeout'
RESPONSE_INTERRUPT = 'response interrupt'
ILLEGAL_RESPONSE = 'illegal response'
ILLEGAL_THREAD_HARDWARE = 'illegal thread hardware'
# hardware message
HARDWARE_RESET = 'hardware reset'
HARDWARE_SCANNING = 'hardware scanning'
HARDWARE_SCAN_DONE = 'hardware scan done'
HARDWARE_SCAN_FAIL = 'device not found please rescan'
HARDWARE_DISCONNECTING_ALL = 'hardware disconnecting all'
HARDWARE_DISCONNECTED_ALL = 'hardware disconnected all'
HARDWARE_NO_RESPONSE = 'hardware no response'
# hardware error message
HARDWARE_NOT_INIT = 'hardware not init'
HARDWARE_CLOSED = 'hardware closed'
# device message
DEVICE_CONNECTING = 'device connecting'
DEVICE_CONNECT_FAIL = 'device connect fail'
DEVICE_CONNECTED = 'device connected'
DEVICE_DISCONNECTING = 'device disconnecting'
DEVICE_DISCONNECTED = 'device disconnected'
DEVICE_NO_RESPONSE = 'device no response'
DEVICE_RESPONSE_ERROR = 'device response error'
DEVICE_COMMAND_NOT_FOUND = 'device command not found'
DEVICE_COMMAND_ERROR = 'device command error'
# user
ILLEGAL_USER_NAME = 'illegal user name'
USER_NOT_FOUND = 'user not found'
USER_HAS_BEEN_USED = 'user name has been used'
PASSWORD_NOT_CORRECT = 'password not correct'
PASSWORD_TOO_WEAK = 'password too weak'