KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > portable > UnknownException


1 /*
2  * @(#)UnknownException.java 1.10 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 /*
8  * Licensed Materials - Property of IBM
9  * RMI-IIOP v1.0
10  * Copyright IBM Corp. 1998 1999 All Rights Reserved
11  *
12  * US Government Users Restricted Rights - Use, duplication or
13  * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
14  */

15
16 package org.omg.CORBA.portable;
17 /**
18  * The org.omg.CORBA.portable.UnknownException is used for reporting
19  * unknown exceptions between ties and ORBs and between ORBs and stubs.
20  * It provides a Java representation of an UNKNOWN system exception
21  * that has an UnknownExceptionInfo service context.
22  * If the CORBA system exception org.omg.CORBA.portable.UnknownException
23  * is thrown, then the stub does one of the following:
24  * (1) Translates it to org.omg.CORBA.UNKNOWN.
25  * (2) Translates it to the nested exception that the UnknownException contains.
26  * (3) Passes it on directly to the user.
27  */

28 public class UnknownException extends org.omg.CORBA.SystemException JavaDoc {
29     /**
30      * A throwable--the original exception that was wrapped in a CORBA
31      * UnknownException.
32      */

33     public Throwable JavaDoc originalEx;
34     /**
35      * Constructs an UnknownException object.
36      * @param ex a Throwable object--to be wrapped in this exception.
37      */

38     public UnknownException(Throwable JavaDoc ex) {
39         super("", 0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
40         originalEx = ex;
41     }
42 }
43
Popular Tags