KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)ACTIVITY_REQUIRED.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_REQUIRED</code> system exception may be raised on any
12  * method for which an Activity context is required. It indicates that an
13  * Activity context was necessary to perform the invoked operation, but one
14  * was not found associated with the calling thread.
15  *
16  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
17  * Java&nbsp;IDL exceptions</A>
18  * @version 1.0, 03/05/2004
19  * @since J2SE 1.5
20  */

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

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

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

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

62     public ACTIVITY_REQUIRED(String JavaDoc detailMessage,
63                              int minorCode,
64                              CompletionStatus JavaDoc completionStatus) {
65         super(detailMessage, minorCode, completionStatus);
66     }
67 }
68
Popular Tags