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

  1. //
  2. //   COMPONENT_NAME: somd
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1996,1996 
  8. //   All Rights Reserved
  9. //   Licensed Materials - Property of IBM
  10. //   US Government Users Restricted Rights - Use, duplication or
  11. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. //
  13. //# @(#) 2.21 src/somd/stexcep.idl, somd, som3.0 10/4/96 10:36:31 [12/24/96 07:39:40] 
  14.  
  15.  
  16. #ifndef stexcep_idl
  17. #define stexcep_idl
  18.  
  19. #include <somdtype.idl>
  20.  
  21. module StExcep
  22. {
  23. // These are the standard CORBA exceptions defined on pg. 80 of the
  24. // OMG CORBA specification.  In addition, we have added a few of our
  25. // own standard exceptions for DSOM.
  26. //
  27. // Note:  the following IDL enums are found in <somobj.idl>,
  28. //        with corresponding C typedefs in <somcorba.h>.
  29. //
  30. //        enum exception_type {NO_EXCEPTION, USER_EXCEPTION, SYSTEM_EXCEPTION};
  31. //        enum completion_status {YES, NO, MAYBE};
  32.  
  33.     #define ex_body { unsigned long minor;  completion_status completed; }
  34.  
  35.     // CORBA-defined standard exceptions
  36.  
  37.     exception UNKNOWN           ex_body;   // the unknown exception
  38.     exception BAD_PARAM         ex_body;   // an invalid parameter was passed
  39.     exception NO_MEMORY         ex_body;   // dynamic memory allocation failure
  40.     exception IMP_LIMIT         ex_body;   // violated implementation limit
  41.     exception COMM_FAILURE      ex_body;   // communication failure
  42.     exception INV_OBJREF        ex_body;   // invalid object reference
  43.     exception NO_PERMISSION     ex_body;   // no permission for attempted op.
  44.     exception INTERNAL          ex_body;   // ORB internal error
  45.     exception MARSHAL           ex_body;   // error marshalling param/result
  46.     exception INITIALIZE        ex_body;   // ORB initialization failure
  47.     exception NO_IMPLEMENT      ex_body;   // operation implementation unavail.
  48.     exception BAD_TYPECODE      ex_body;   // bad typecode
  49.     exception BAD_OPERATION     ex_body;   // invalid operation
  50.     exception NO_RESOURCES      ex_body;   // insufficient resources for req.
  51.     exception NO_RESPONSE       ex_body;   // response to req. not yet avail.
  52.     exception PERSIST_STORE     ex_body;   // persistent storage failure
  53.     exception BAD_INV_ORDER     ex_body;   // routine invocations out of order
  54.     exception TRANSIENT         ex_body;   // transient failure - reissue req.
  55.     exception FREE_MEM          ex_body;   // cannot free memory
  56.     exception INV_IDENT         ex_body;   // invalid identifier syntax
  57.     exception INV_FLAG          ex_body;   // invalid flag was specified
  58.     exception INTF_REPOS        ex_body;   // error accessing interface repos.
  59.     exception CONTEXT           ex_body;   // error processing context object
  60.     exception OBJ_ADAPTER       ex_body;   // failure detected by obj. adapter
  61.     exception DATA_CONVERSION   ex_body;   // data conversion error
  62.  
  63.     // DSOM standard exceptions
  64.  
  65.     exception OPSYS             ex_body;   // no longer raised by DSOM
  66.     exception WMQUIT            ex_body;   // no longer raised by DSOM
  67.     exception DISPATCH          ex_body;   // no longer raised by DSOM
  68.  
  69.     // Transaction Service standard exceptions
  70.  
  71.     exception TransactionRequired   ex_body; // operation requires transaction
  72.     exception TransactionRolledBack ex_body; // current transaction has rolled back
  73.     exception InvalidTransaction    ex_body; // transaction invalid/in invalid state
  74.     exception WrongTransaction      ex_body; // reply received for wrong transaction
  75.  
  76.     // Security Service standard exceptions
  77.     
  78.     exception DB_FAILURE    ex_body;     // somsec needs this (D18861)
  79. };
  80.  
  81. #endif /* stexcep_idl */
  82.