Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.6 KiB

  1. // iopExc.h -- IOP EXCeption class definition
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 1999. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. #if !defined(IOP_EXC_H)
  8. #define IOP_EXC_H
  9. #include <scuExc.h>
  10. #include "DllSymDefn.h"
  11. namespace iop
  12. {
  13. enum CauseCode
  14. {
  15. ccAclNotSupported,
  16. ccAclNotTranslatable,
  17. ccAlgorithmIdNotSupported,
  18. ccBadFileCategory,
  19. ccBadFilePath,
  20. ccBadInstanceFile,
  21. ccBadLockReferenceCount,
  22. ccCannotInterpretGetResponse,
  23. ccCyclicRecordSizeTooLarge,
  24. ccDirectoryNotEmpty,
  25. ccFail,
  26. ccFileIdNotHex,
  27. ccFileIdTooLarge,
  28. ccFilePathTooLong,
  29. ccFileTypeUnknown,
  30. ccFileTypeInvalid,
  31. ccInvalidChecksum,
  32. ccInvalidChv,
  33. ccInvalidParameter,
  34. ccLockCorrupted,
  35. ccMutexHandleChanged,
  36. ccNoFileSelected, // TO DO: Delete?
  37. ccNoResponseAvailable,
  38. ccNotImplemented,
  39. ccResourceManagerDisabled,
  40. ccSelectedFileNotDirectory,
  41. ccSynchronizationObjectNameTooLong,
  42. ccUnknownCard,
  43. ccUnsupportedCommand,
  44. ccBadATR,
  45. ccBufferTooSmall,
  46. };
  47. typedef scu::ExcTemplate<scu::Exception::fcIOP, CauseCode> Exception;
  48. /////////////////////////// HELPERS /////////////////////////////////
  49. char const *
  50. Description(Exception const &rExc);
  51. } // namespace iop
  52. inline char const *
  53. iop::Exception::Description() const
  54. {
  55. return iop::Description(*this);
  56. }
  57. #endif // IOP_EXC_H