KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)INVALID_TRANSACTION.java 1.22 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 package org.omg.CORBA;
9
10 /**
11  * Exception thrown
12  * when the request carried an invalid transaction context.
13  * For example, this exception could be raised if an error
14  * occurred when trying to register a resource.<P>
15  * It contains a minor code, which gives more detailed information about
16  * what caused the exception, and a completion status. It may also contain
17  * a string describing the exception.
18  *
19  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
20  * Java&nbsp;IDL exceptions</A>
21  * @version 1.5, 09/09/97
22  * @since JDK1.2
23  *
24  */

25
26 public final class INVALID_TRANSACTION extends SystemException JavaDoc {
27     /**
28      * Constructs an <code>INVALID_TRANSACTION</code> exception with a default minor code
29      * of 0 and a completion state of COMPLETED_NO.
30      */

31     public INVALID_TRANSACTION() {
32     this("");
33     }
34
35     /**
36      * Constructs an <code>INVALID_TRANSACTION</code> exception
37      * with the specified detail message.
38      * @param s the String containing a detail message
39      */

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

50     public INVALID_TRANSACTION(int minor, CompletionStatus JavaDoc completed) {
51         this("", minor, completed);
52     }
53
54     /**
55      * Constructs an <code>INVALID_TRANSACTION</code> exception with the specified detail
56      * message, minor code, and completion status.
57      * A detail message is a String that describes this particular exception.
58      * @param s the String containing a detail message
59      * @param minor the minor code
60      * @param completed the completion status
61      */

62     public INVALID_TRANSACTION(String JavaDoc s, int minor, CompletionStatus JavaDoc completed) {
63         super(s, minor, completed);
64     }
65 }
66
Popular Tags