KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)WrongTransaction.java 1.24 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  * The CORBA <code>WrongTransaction</code> user-defined exception.
12  * This exception is thrown only by the methods
13  * <code>Request.get_response</code>
14  * and <code>ORB.get_next_response</code> when they are invoked
15  * from a transaction scope that is different from the one in
16  * which the client originally sent the request.
17  * See the OMG Transaction Service Specification for details.
18  *
19  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
20  * Java&nbsp;IDL exceptions</A>
21  */

22
23 public final class WrongTransaction extends UserException JavaDoc {
24     /**
25      * Constructs a WrongTransaction object with an empty detail message.
26      */

27     public WrongTransaction() {
28         super(WrongTransactionHelper.id());
29     }
30
31     /**
32      * Constructs a WrongTransaction object with the given detail message.
33      * @param reason The detail message explaining what caused this exception to be thrown.
34      */

35     public WrongTransaction(String JavaDoc reason) {
36         super(WrongTransactionHelper.id() + " " + reason);
37     }
38 }
39
Popular Tags