KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > ACTIVITY_COMPLETED


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

7
8 package org.omg.CORBA;
9
10 /**
11  * The <code>ACTIVITY_COMPLETED</code> system exception may be raised on any
12  * method for which Activity context is accessed. It indicates that the
13  * Activity context in which the method call was made has been completed due
14  * to a timeout of either the Activity itself or a transaction that encompasses
15  * the Activity, or that the Activity completed in a manner other than that
16  * originally requested.
17  *
18  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
19  * Java&nbsp;IDL exceptions</A>
20  * @version 1.0, 03/05/2004
21  * @since J2SE 1.5
22  */

23
24 public final class ACTIVITY_COMPLETED extends SystemException JavaDoc {
25
26     /**
27      * Constructs an <code>ACTIVITY_COMPLETED</code> exception with
28      * minor code set to 0 and CompletionStatus set to COMPLETED_NO.
29      */

30     public ACTIVITY_COMPLETED() {
31     this("");
32     }
33
34     /**
35      * Constructs an <code>ACTIVITY_COMPLETED</code> exception with the
36      * specified message.
37      *
38      * @param detailMessage string containing a detailed message.
39      */

40     public ACTIVITY_COMPLETED(String JavaDoc detailMessage) {
41         this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
42     }
43
44     /**
45      * Constructs an <code>ACTIVITY_COMPLETED</code> exception with the
46      * specified minor code and completion status.
47      *
48      * @param minorCode minor code.
49      * @param completionStatus completion status.
50      */

51     public ACTIVITY_COMPLETED(int minorCode,
52                               CompletionStatus JavaDoc completionStatus) {
53         this("", minorCode, completionStatus);
54     }
55
56     /**
57      * Constructs an <code>ACTIVITY_COMPLETED</code> exception with the
58      * specified message, minor code, and completion status.
59      *
60      * @param detailMessage string containing a detailed message.
61      * @param minorCode minor code.
62      * @param completionStatus completion status.
63      */

64     public ACTIVITY_COMPLETED(String JavaDoc detailMessage,
65                               int minorCode,
66                               CompletionStatus JavaDoc completionStatus) {
67         super(detailMessage, minorCode, completionStatus);
68     }
69 }
70
Popular Tags