home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SOM / INCLUDE / STEXCEP.IDL < prev    next >
Text File  |  1995-08-24  |  3KB  |  60 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. // These are the standard CORBA exceptions defined on pg. 80 of the
  14. // OMG CORBA specification.  In addition, we have added a few of our
  15. // own standard exceptions for DSOM.
  16. //
  17. // Note:  the following IDL enums are found in <somdtype.idl>,
  18. //        with corresponding C typedefs in <somcorba.h>.
  19. //
  20. //        enum exception_type {NO_EXCEPTION, USER_EXCEPTION, SYSTEM_EXCEPTION};
  21. //        enum completion_status {YES, NO, MAYBE};
  22. #ifndef stexcep_idl
  23. #define stexcep_idl
  24. #include <somdtype.idl>
  25. module StExcep
  26. {
  27.     #define ex_body { unsigned long minor;  completion_status completed; }
  28.     // CORBA-defined standard exceptions
  29.     exception UNKNOWN        ex_body;   // the unknown exception
  30.     exception BAD_PARAM        ex_body;   // an invalid parameter was passed
  31.     exception NO_MEMORY        ex_body;   // dynamic memory allocation failure
  32.     exception IMP_LIMIT        ex_body;   // violated implementation limit
  33.     exception COMM_FAILURE    ex_body;   // communication failure
  34.     exception INV_OBJREF    ex_body;   // invalid object reference
  35.     exception NO_PERMISSION    ex_body;   // no permission for attempted op.
  36.     exception INTERNAL        ex_body;   // ORB internal error
  37.     exception MARSHAL        ex_body;   // error marshalling param/result
  38.     exception INITIALIZE    ex_body;   // ORB initialization failure
  39.     exception NO_IMPLEMENT    ex_body;   // operation implementation unavail.
  40.     exception BAD_TYPECODE    ex_body;   // bad typecode
  41.     exception BAD_OPERATION    ex_body;   // invalid operation
  42.     exception NO_RESOURCES    ex_body;   // insufficient resources for req.
  43.     exception NO_RESPONSE    ex_body;   // response to req. not yet avail.
  44.     exception PERSIST_STORE    ex_body;   // persistent storage failure
  45.     exception BAD_INV_ORDER    ex_body;   // routine invocations out of order
  46.     exception TRANSIENT        ex_body;   // transient failure - reissue req.
  47.     exception FREE_MEM        ex_body;   // cannot free memory
  48.     exception INV_IDENT        ex_body;   // invalid identifier syntax
  49.     exception INV_FLAG        ex_body;   // invalid flag was specified
  50.     exception INTF_REPOS    ex_body;   // error accessing interface repos.
  51.     exception CONTEXT        ex_body;   // error processing context object
  52.     exception OBJ_ADAPTER    ex_body;   // failure detected by obj. adapter
  53.     exception DATA_CONVERSION    ex_body;   // data conversion error
  54.     // DSOM standard exceptions
  55.     exception OPSYS             ex_body;   // operating system error
  56.     exception WMQUIT            ex_body;   // WMQUIT message
  57.     exception DISPATCH          ex_body;   // no longer raised by DSOM
  58. };
  59. #endif /* stexcep_idl */
  60.