KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)TRANSACTION_REQUIRED.java 1.21 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 indicates that the request carried a null transaction context,
12  * but an active transaction is required.<P>
13  * It contains a minor code, which gives information about
14  * what caused the exception, and a completion status. It may also contain
15  * a string describing the exception.
16  * The OMG Transaction Service specfication has details.
17  *
18  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
19  * Java&nbsp;IDL exceptions</A>
20  * @version 1.5 09/09/97
21  */

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

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

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

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

59     public TRANSACTION_REQUIRED(String JavaDoc s, int minor, CompletionStatus JavaDoc completed) {
60         super(s, minor, completed);
61     }
62 }
63
Popular Tags