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.

54 lines
1.2 KiB

  1. // cciExc.h -- CCI Exception class declaration
  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(CCI_EXC_H)
  8. #define CCI_EXC_H
  9. #include <scuExc.h>
  10. namespace cci
  11. {
  12. enum CauseCode
  13. {
  14. ccBadKeySpec,
  15. ccBadAccessSpec,
  16. ccBadObjectType,
  17. ccBadLength,
  18. ccBadPinLength,
  19. ccFormatNotSupported,
  20. ccFormatError,
  21. ccInvalidParameter,
  22. ccKeyNotFound,
  23. ccNoCertificate,
  24. ccNotImplemented,
  25. ccNotPersonalized,
  26. ccOutOfPrivateKeySlots,
  27. ccOutOfSymbolTableSpace,
  28. ccOutOfSymbolTableEntries,
  29. ccStringTooLong,
  30. ccSymbolNotFound,
  31. ccSymbolDataCorrupted,
  32. ccValueNotCached,
  33. };
  34. typedef scu::ExcTemplate<scu::Exception::fcCCI, CauseCode> Exception;
  35. /////////////////////////// HELPERS /////////////////////////////////
  36. char const *
  37. Description(Exception const &rExc);
  38. } // namespace cci
  39. inline char const *
  40. cci::Exception::Description() const
  41. {
  42. return cci::Description(*this);
  43. }
  44. #endif // CCI_EXC_H