/Dsz/PyScripts/Lib/dsz/mca/network/cmd/banner/errors.py

https://github.com/francisck/DanderSpritz_docs · Python · 32 lines · 27 code · 0 blank · 5 comment · 0 complexity · 6c054127de98b3afe0e5b6b110266094 MD5 · raw file

  1. # uncompyle6 version 2.9.10
  2. # Python bytecode 2.7 (62211)
  3. # Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
  4. # [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
  5. # Embedded file name: errors.py
  6. import mcl.status
  7. ERR_SUCCESS = mcl.status.MCL_SUCCESS
  8. ERR_INVALID_PARAM = mcl.status.framework.ERR_START
  9. ERR_CALLBACK_FAILED = mcl.status.framework.ERR_START + 1
  10. ERR_MARSHAL_FAILED = mcl.status.framework.ERR_START + 2
  11. ERR_SOCKET_INIT_FAILURE = mcl.status.framework.ERR_START + 3
  12. ERR_SOCKET_BIND_FAILURE = mcl.status.framework.ERR_START + 4
  13. ERR_SOCKET_OPTION_FAILURE = mcl.status.framework.ERR_START + 5
  14. ERR_CONNECT_FAILURE = mcl.status.framework.ERR_START + 6
  15. ERR_SEND_FAILURE = mcl.status.framework.ERR_START + 7
  16. ERR_PACKET_TOO_LARGE = mcl.status.framework.ERR_START + 8
  17. ERR_RECV_ERROR = mcl.status.framework.ERR_START + 9
  18. ERR_RECV_TIMEOUT = mcl.status.framework.ERR_START + 10
  19. ERR_NOT_IMPLEMENTED = mcl.status.framework.ERR_START + 11
  20. errorStrings = {ERR_INVALID_PARAM: 'Invalid parameter(s)',
  21. ERR_CALLBACK_FAILED: 'Error making callback',
  22. ERR_MARSHAL_FAILED: 'Marshaling data failed',
  23. ERR_SOCKET_INIT_FAILURE: 'Socket initialization failed',
  24. ERR_SOCKET_BIND_FAILURE: 'Failed to bind to given source port',
  25. ERR_SOCKET_OPTION_FAILURE: 'Failed to set socket option',
  26. ERR_CONNECT_FAILURE: 'Connect request failed',
  27. ERR_SEND_FAILURE: 'Send failed',
  28. ERR_PACKET_TOO_LARGE: 'The given packet is too large to send',
  29. ERR_RECV_ERROR: 'Error receiving data',
  30. ERR_RECV_TIMEOUT: 'Timeout waiting for data',
  31. ERR_NOT_IMPLEMENTED: 'Not implemented on this platform'
  32. }