KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)INVALID_ACTIVITY.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>INVALID_ACTIVITY</code> system exception may be raised on the
12  * Activity or Transaction services' resume methods if a transaction or
13  * Activity is resumed in a context different to that from which it was
14  * suspended. It is also raised when an attempted invocation is made that
15  * is incompatible with the Activity's current state.
16  *
17  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
18  * Java&nbsp;IDL exceptions</A>
19  * @version 1.0, 03/05/2004
20  * @since J2SE 1.5
21  */

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

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

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

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

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