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({ ...@@ -301,15 +301,17 @@ packet_types = Enum({
}) })
# Error codes. # Error codes.
NO_ERROR_CODE = 0 error_codes = Enum({
NOT_READY_CODE = 1 'NO_ERROR_CODE': 0,
OID_NOT_FOUND_CODE = 2 'NOT_READY_CODE': 1,
SERIAL_NOT_FOUND_CODE = 3 'OID_NOT_FOUND_CODE': 2,
TID_NOT_FOUND_CODE = 4 'SERIAL_NOT_FOUND_CODE': 3,
PROTOCOL_ERROR_CODE = 5 'TID_NOT_FOUND_CODE': 4,
TIMEOUT_ERROR_CODE = 6 'PROTOCOL_ERROR_CODE': 5,
BROKEN_NODE_DISALLOWED_CODE = 7 'TIMEOUT_ERROR_CODE': 6,
INTERNAL_ERROR_CODE = 8 'BROKEN_NODE_DISALLOWED_CODE': 7,
'INTERNAL_ERROR_CODE': 8,
})
# Cluster states # Cluster states
cluster_states = Enum({ 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