/windows/Resources/Dsz/PyScripts/Lib/dsz/mca_dsz/network/cmd/serialredirect/errors.py

https://github.com/misterch0c/shadowbroker · Python · 44 lines · 39 code · 0 blank · 5 comment · 0 complexity · 64b9adb8b28ba4149661d2b063516701 MD5 · raw file

  1. # uncompyle6 version 2.9.10
  2. # Python bytecode 2.7 (62211)
  3. # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
  4. # [GCC 6.2.0 20161005]
  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_MARSHAL_FAILED = mcl.status.framework.ERR_START + 1
  10. ERR_MEMORY_ALLOC_FAILED = mcl.status.framework.ERR_START + 2
  11. ERR_EXCEPTION = mcl.status.framework.ERR_START + 3
  12. ERR_INTERNAL_ERROR = mcl.status.framework.ERR_START + 4
  13. ERR_ADD_TO_LIST_FAILED = mcl.status.framework.ERR_START + 5
  14. ERR_GET_FROM_LIST_FAILED = mcl.status.framework.ERR_START + 6
  15. ERR_CONNECT_FAILURE = mcl.status.framework.ERR_START + 7
  16. ERR_CONNECT_ACCESS_DENIED = mcl.status.framework.ERR_START + 8
  17. ERR_CONNECT_FILE_NOT_FOUND = mcl.status.framework.ERR_START + 9
  18. ERR_UNABLE_TO_DUPLICATE_HANDLE = mcl.status.framework.ERR_START + 10
  19. ERR_GET_COMM_STATE = mcl.status.framework.ERR_START + 11
  20. ERR_SET_COMM_STATE = mcl.status.framework.ERR_START + 12
  21. ERR_COMM_PORT_UNDEFINED = mcl.status.framework.ERR_START + 13
  22. ERR_INDEX_NOT_FOUND = mcl.status.framework.ERR_START + 14
  23. ERR_THREAD_FAILED = mcl.status.framework.ERR_START + 15
  24. ERR_MUTEX_FAILED = mcl.status.framework.ERR_START + 16
  25. ERR_SHUTDOWN = mcl.status.framework.ERR_START + 17
  26. errorStrings = {ERR_INVALID_PARAM: 'Invalid parameter(s)',
  27. ERR_MARSHAL_FAILED: 'Marshaling of data failed',
  28. ERR_MEMORY_ALLOC_FAILED: 'Allocation of memory failed',
  29. ERR_EXCEPTION: 'An exception occurred',
  30. ERR_INTERNAL_ERROR: 'An internal error occurred',
  31. ERR_ADD_TO_LIST_FAILED: 'Failed to add object to list',
  32. ERR_GET_FROM_LIST_FAILED: 'Failed to get object from list',
  33. ERR_CONNECT_FAILURE: 'Unable to connect to COM Port',
  34. ERR_CONNECT_ACCESS_DENIED: 'Access Denied to Serial Port',
  35. ERR_CONNECT_FILE_NOT_FOUND: 'Unable to find defined COM Port',
  36. ERR_UNABLE_TO_DUPLICATE_HANDLE: 'Failed to duplicate given handle',
  37. ERR_GET_COMM_STATE: 'Failed to get state of COM port defined',
  38. ERR_SET_COMM_STATE: 'Failed to set state of COM port defined with given parameters',
  39. ERR_COMM_PORT_UNDEFINED: 'COM Port name was not defined',
  40. ERR_INDEX_NOT_FOUND: 'Index for comm port not found',
  41. ERR_THREAD_FAILED: 'Failed to start thread',
  42. ERR_MUTEX_FAILED: 'Could not reserve the connection',
  43. ERR_SHUTDOWN: 'COMM port is shutdown / shutting-down'
  44. }