TRANSACTION_UNAVAILABLE.java revision 608:7e06bf1dcb09
1272343Sngie/* 2272343Sngie * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved. 3272343Sngie * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4272343Sngie * 5272343Sngie * This code is free software; you can redistribute it and/or modify it 6272343Sngie * under the terms of the GNU General Public License version 2 only, as 7272343Sngie * published by the Free Software Foundation. Oracle designates this 8272343Sngie * particular file as subject to the "Classpath" exception as provided 9272343Sngie * by Oracle in the LICENSE file that accompanied this code. 10272343Sngie * 11272343Sngie * This code is distributed in the hope that it will be useful, but WITHOUT 12272343Sngie * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13272343Sngie * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14272343Sngie * version 2 for more details (a copy is included in the LICENSE file that 15272343Sngie * accompanied this code). 16272343Sngie * 17272343Sngie * You should have received a copy of the GNU General Public License version 18272343Sngie * 2 along with this work; if not, write to the Free Software Foundation, 19272343Sngie * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20272343Sngie * 21272343Sngie * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22272343Sngie * or visit www.oracle.com if you need additional information or have any 23272343Sngie * questions. 24272343Sngie */ 25272343Sngie 26272343Sngiepackage org.omg.CORBA; 27272343Sngie 28272343Sngie/** 29272343Sngie * The CORBA <code>TRANSACTION_UNAVAILABLE</code> exception is thrown 30272343Sngie * by the ORB when it cannot process a transaction service context because 31272343Sngie * its connection to the Transaction Service has been abnormally terminated. 32272343Sngie * 33272343Sngie * It contains a minor code, which gives information about 34272343Sngie * what caused the exception, and a completion status. It may also contain 35272343Sngie * a string describing the exception. 36272343Sngie * The OMG CORBA core 2.4 specification has details. 37272343Sngie * 38272343Sngie * @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on 39272343Sngie * Java IDL exceptions</A> 40272343Sngie */ 41272343Sngie 42272343Sngiepublic final class TRANSACTION_UNAVAILABLE extends SystemException { 43272343Sngie /** 44272343Sngie * Constructs a <code>TRANSACTION_UNAVAILABLE</code> exception 45272343Sngie * with a default minor code of 0, a completion state of 46272343Sngie * CompletionStatus.COMPLETED_NO, and a null description. 47272343Sngie */ 48272343Sngie public TRANSACTION_UNAVAILABLE() { 49272343Sngie this(""); 50272343Sngie } 51272343Sngie 52272343Sngie /** 53272343Sngie * Constructs a <code>TRANSACTION_UNAVAILABLE</code> exception with the 54272343Sngie * specifieddescription message, a minor code of 0, and a completion state 55272343Sngie * of COMPLETED_NO. 56272343Sngie * @param s the String containing a detail message 57272343Sngie */ 58272343Sngie public TRANSACTION_UNAVAILABLE(String s) { 59272343Sngie this(s, 0, CompletionStatus.COMPLETED_NO); 60272343Sngie } 61272343Sngie 62272343Sngie /** 63272343Sngie * Constructs a <code>TRANSACTION_UNAVAILABLE</code> exception with the 64272343Sngie * specified minor code and completion status. 65272343Sngie * @param minor the minor code 66272343Sngie * @param completed the completion status 67272343Sngie */ 68272343Sngie public TRANSACTION_UNAVAILABLE(int minor, CompletionStatus completed) { 69272343Sngie this("", minor, completed); 70272343Sngie } 71272343Sngie 72272343Sngie /** 73272343Sngie * Constructs a <code>TRANSACTION_UNAVAILABLE</code> exception with the 74272343Sngie * specified description message, minor code, and completion status. 75272343Sngie * @param s the String containing a description message 76272343Sngie * @param minor the minor code 77272343Sngie * @param completed the completion status 78272343Sngie */ 79272343Sngie public TRANSACTION_UNAVAILABLE(String s, int minor, 80272343Sngie CompletionStatus completed) { 81272343Sngie super(s, minor, completed); 82272343Sngie } 83272343Sngie} 84272343Sngie