Commit 0bfacc9e authored by Vincent Pelletier's avatar Vincent Pelletier

Make error code become EnumItems to get a better string representation.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1099 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 2cd1a166
......@@ -301,15 +301,17 @@ packet_types = Enum({
})
# Error codes.
NO_ERROR_CODE = 0
NOT_READY_CODE = 1
OID_NOT_FOUND_CODE = 2
SERIAL_NOT_FOUND_CODE = 3
TID_NOT_FOUND_CODE = 4
PROTOCOL_ERROR_CODE = 5
TIMEOUT_ERROR_CODE = 6
BROKEN_NODE_DISALLOWED_CODE = 7
INTERNAL_ERROR_CODE = 8
error_codes = Enum({
'NO_ERROR_CODE': 0,
'NOT_READY_CODE': 1,
'OID_NOT_FOUND_CODE': 2,
'SERIAL_NOT_FOUND_CODE': 3,
'TID_NOT_FOUND_CODE': 4,
'PROTOCOL_ERROR_CODE': 5,
'TIMEOUT_ERROR_CODE': 6,
'BROKEN_NODE_DISALLOWED_CODE': 7,
'INTERNAL_ERROR_CODE': 8,
})
# Cluster states
cluster_states = Enum({
......
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