Commit 7bd41469 authored by Aurel's avatar Aurel

add NO_ERROR_CODE error message


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@694 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 27090dfa
......@@ -41,7 +41,7 @@ from protocol import ERROR, REQUEST_NODE_IDENTIFICATION, ACCEPT_NODE_IDENTIFICAT
PROTOCOL_ERROR_CODE, TIMEOUT_ERROR_CODE, BROKEN_NODE_DISALLOWED_CODE, \
INTERNAL_ERROR_CODE, ASK_PARTITION_LIST, ANSWER_PARTITION_LIST, ASK_NODE_LIST, \
ANSWER_NODE_LIST, SET_NODE_STATE, ANSWER_NODE_STATE, SET_CLUSTER_STATE, \
ANSWER_CLUSTER_STATE, ASK_NODE_INFORMATION, ANSWER_NODE_INFORMATION
ANSWER_CLUSTER_STATE, ASK_NODE_INFORMATION, ANSWER_NODE_INFORMATION, NO_ERROR_CODE
class EventHandler(object):
......@@ -377,6 +377,9 @@ class EventHandler(object):
self.peerBroken(conn)
conn.close()
def handleNoError(self, conn, packet, message):
logging.info("no error message : %s" %(message))
def initPacketDispatchTable(self):
d = {}
......@@ -446,7 +449,7 @@ class EventHandler(object):
def initErrorDispatchTable(self):
d = {}
d[NO_ERROR_CODE] = self.handleNoError
d[NOT_READY_CODE] = self.handleNotReady
d[OID_NOT_FOUND_CODE] = self.handleOidNotFound
d[SERIAL_NOT_FOUND_CODE] = self.handleSerialNotFound
......
......@@ -302,6 +302,7 @@ packet_types = Enum({
})
# Error codes.
NO_ERROR_CODE = 0
NOT_READY_CODE = 1
OID_NOT_FOUND_CODE = 2
SERIAL_NOT_FOUND_CODE = 3
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment