home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / som30tk.zip / som30os2.zip / include / xmscssae.idl < prev    next >
Text File  |  1996-12-24  |  3KB  |  107 lines

  1. //-----------------------------------------------------------------------------
  2. // @(#) 1.3 src/somos/cs/exceptns/xmscssae.idl, somos, som3.0 9/3/96 18:42:16 [12/24/96 08:34:24]
  3. //
  4. // ModuleName:  exceptions
  5. //
  6. // Description: This module contians the idl description for the User
  7. //              Exceptions.  It is based on the definitions from the X/Open
  8. //              spec.  Two of these exceptions, ExNoMoreMemory and ExFileIO, 
  9. //            are not officially X/Open.  They are remnants of the Tivoli 
  10. //              code that is still being used.
  11. //
  12. //  25H7912  (C)  Copyright International Business Machines Corp. 1994,1996 
  13. // All Rights Reserved
  14. // Licensed Materials - Property of IBM
  15. //
  16. // US Government Users Restricted Rights - Use, duplication or disclosure
  17. // restricted by GSA ADP Schedule Contract with IBM Corp.
  18. //
  19. //-----------------------------------------------------------------------------
  20.  
  21. #ifndef SysAdminExcept_idl
  22. #define SysAdminExcept_idl
  23. #include <somobj.idl>
  24.  
  25.  
  26. #define XPG_FIELDS      \
  27.     string type_name;   \
  28.     string catalog;     \
  29.     long key;           \
  30.     string default_msg; \
  31.     long time_stamp;    \
  32.     MsgContext msg_context;
  33.  
  34. interface SysAdminException
  35. #ifdef __SOMIDL__
  36.                             : SOMObject
  37. #endif
  38. {
  39.  
  40. exception Exception {
  41.         void            *dummy;
  42. };
  43.  
  44. typedef sequence<octet> MsgContext;
  45.  
  46.  
  47. exception ExException {
  48.         XPG_FIELDS
  49. };
  50. // Base exception class with X/Open messages 
  51.  
  52. exception ExFailed {
  53.         XPG_FIELDS
  54.         string operation_name;
  55. };
  56. // an operation failure 
  57.  
  58. exception ExInvalid {
  59.         XPG_FIELDS
  60.         string resource_name;
  61. };
  62. // failure from an invalid resource 
  63.  
  64. exception ExNotFound {
  65.         XPG_FIELDS
  66.         string resource_name;
  67. };
  68. // failures due to missing resource 
  69.  
  70. exception ExExists {
  71.         XPG_FIELDS
  72.         string resource_name;
  73. };
  74. // failures resulting from an already existing resource 
  75.  
  76. exception ExFileIO {
  77.         XPG_FIELDS
  78.         string resource_name;
  79. };
  80. // can't file I/O problem 
  81.  
  82. exception ExObjNotFound {
  83.         XPG_FIELDS
  84.         string resource_name;
  85. };
  86. // failures due to missing object 
  87.  
  88. exception ExNoMoreMemory {
  89.         XPG_FIELDS
  90.         string message;
  91.         long size;
  92. };
  93. // memory used up 
  94.  
  95. #ifdef __SOMIDL__
  96. implementation {
  97.         callstyle = idl;
  98.         majorversion = 3;
  99.         minorversion = 0;
  100.         dllname = "somcslib.dll";
  101.         passthru C_h_after = "#define XPG_FIELDS_PARAMS string type_name, string catalog, long key,  string default_msg, long time_stamp, MsgContext *msg_context";
  102. };
  103. #endif //# _SOMIDL__ 
  104. }; //# End of SysAdminException module
  105.  
  106. #endif
  107.