home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / stexcep.idl < prev    next >
Text File  |  1999-02-22  |  3KB  |  82 lines

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