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