KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)TRANSACTION_ROLLEDBACK.java 1.20 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 when the transaction associated with the request has
12  * already been rolled back or marked to roll back. Thus, the requested
13  * operation either could not be performed or was not performed because
14  * further computation on behalf of the transaction would be fruitless.<P>
15  * See the OMG Transaction
16  * Service specification for details.
17  * It contains a minor code, which gives more detailed information about
18  * what caused the exception, and a completion status. It may also contain
19  * a string describing the exception.
20  *
21  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
22  * Java&nbsp;IDL exceptions</A>
23  * @version 1.5 09/09/97
24  */

25
26 public final class TRANSACTION_ROLLEDBACK extends SystemException JavaDoc {
27     /**
28      * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with a default minor code
29      * of 0, a completion state of CompletionStatus.COMPLETED_NO,
30      * and a null description.
31      */

32     public TRANSACTION_ROLLEDBACK() {
33     this("");
34     }
35
36     /**
37      * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the
38      * specified description message,
39      * a minor code of 0, and a completion state of COMPLETED_NO.
40      * @param s the String containing a detail message
41      */

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

52     public TRANSACTION_ROLLEDBACK(int minor, CompletionStatus JavaDoc completed) {
53         this("", minor, completed);
54     }
55
56     /**
57      * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the
58      * specified description message, minor code, and completion status.
59      * @param s the String containing a description message
60      * @param minor the minor code
61      * @param completed the completion status
62      */

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