/Dsz/PyScripts/Lib/dsz/mca/security/cmd/eventlogquery/errors.py

https://github.com/francisck/DanderSpritz_docs · Python · 38 lines · 33 code · 0 blank · 5 comment · 0 complexity · fa32aa8085f7ca7cf4a38f1adcb8c840 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_MARSHAL_FAILED = mcl.status.framework.ERR_START + 1
  10. ERR_INVALID_LOGNAME = mcl.status.framework.ERR_START + 2
  11. ERR_QUERY_FAILED = mcl.status.framework.ERR_START + 3
  12. ERR_EXCEPTION_THROWN = mcl.status.framework.ERR_START + 4
  13. ERR_READ_FAILURE = mcl.status.framework.ERR_START + 5
  14. ERR_NO_ENTRIES = mcl.status.framework.ERR_START + 6
  15. ERR_BAD_COUNT = mcl.status.framework.ERR_START + 7
  16. ERR_OPEN_FAILURE = mcl.status.framework.ERR_START + 8
  17. ERR_MEMORY_FAILURE = mcl.status.framework.ERR_START + 9
  18. ERR_GET_COUNT_FAILED = mcl.status.framework.ERR_START + 10
  19. ERR_API_NOT_FOUND = mcl.status.framework.ERR_START + 11
  20. ERR_CONNECT_FAILED = mcl.status.framework.ERR_START + 12
  21. ERR_CREATE_RENDER_FAILURE = mcl.status.framework.ERR_START + 13
  22. ERR_NO_MATCHING_ENTRIES = mcl.status.framework.ERR_START + 14
  23. errorStrings = {ERR_INVALID_PARAM: 'Invalid parameter(s)',
  24. ERR_MARSHAL_FAILED: 'Marshaling data failed',
  25. ERR_INVALID_LOGNAME: 'Invalid log name',
  26. ERR_QUERY_FAILED: 'Query failed',
  27. ERR_EXCEPTION_THROWN: 'The program threw an exception',
  28. ERR_READ_FAILURE: 'Unable to read event log',
  29. ERR_NO_ENTRIES: 'Specified event log is empty',
  30. ERR_BAD_COUNT: 'Unable to obtain number of event log records',
  31. ERR_OPEN_FAILURE: 'Could not open event logs',
  32. ERR_MEMORY_FAILURE: 'Failed to allocate memory',
  33. ERR_GET_COUNT_FAILED: 'Failed to get start/end entry',
  34. ERR_API_NOT_FOUND: 'Required API was not found',
  35. ERR_CONNECT_FAILED: 'Connect to remote target failed',
  36. ERR_CREATE_RENDER_FAILURE: 'Failed to create render context',
  37. ERR_NO_MATCHING_ENTRIES: 'No matching entries found'
  38. }