1. /*
  2. * @(#)UnknownException.java 1.6 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. /*
  11. * Licensed Materials - Property of IBM
  12. * RMI-IIOP v1.0
  13. * Copyright IBM Corp. 1998 1999 All Rights Reserved
  14. *
  15. * US Government Users Restricted Rights - Use, duplication or
  16. * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. */
  18. package org.omg.CORBA.portable;
  19. /**
  20. * The org.omg.CORBA.portable.UnknownException is used for reporting
  21. * unknown exceptions between ties and ORBs and between ORBs and stubs.
  22. * It provides a Java representation of an UNKNOWN system exception
  23. * that has an UnknownExceptionInfo service context.
  24. * If the CORBA system exception org.omg.CORBA.portable.UnknownException
  25. * is thrown, then the stub does one of the following:
  26. * (1) Translates it to org.omg.CORBA.UNKNOWN.
  27. * (2) Translates it to the nested exception that the UnknownException contains.
  28. * (3) Passes it on directly to the user.
  29. */
  30. public class UnknownException extends org.omg.CORBA.SystemException {
  31. /**
  32. * A throwable--the original exception that was wrapped in a CORBA
  33. * UnknownException.
  34. */
  35. public Throwable originalEx;
  36. /**
  37. * Constructs an UnknownException object.
  38. * @param ex a Throwable object--to be wrapped in this exception.
  39. */
  40. public UnknownException(Throwable ex) {
  41. super("", 0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
  42. originalEx = ex;
  43. }
  44. }