src/java.transaction/share/classes/javax/transaction/TransactionRequiredException.java
author ihse
Thu, 26 Oct 2017 13:20:47 +0200
changeset 47456 9c1e4b0a4761
parent 47216 71c04702a3d5
permissions -rw-r--r--
8189955: Configuration validation is broken for some types of paths Reviewed-by: erikj
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28298
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
     1
/*
29929
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
     2
 * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
28298
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
     4
 *
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    10
 *
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    15
 * accompanied this code).
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    16
 *
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    20
 *
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    23
 * questions.
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    24
 */
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    25
/*
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    26
 * Licensed Materials - Property of IBM
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    27
 * RMI-IIOP v1.0
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    28
 * Copyright IBM Corp. 1998 1999  All Rights Reserved
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    29
 *
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    30
 */
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    31
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    32
package javax.transaction;
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    33
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    34
/**
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    35
 * This exception indicates that a request carried a null transaction context,
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    36
 * but the target object requires an activate transaction.
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    37
 */
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    38
@SuppressWarnings("serial")             // serialVersionUID intentionally omitted
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    39
public class TransactionRequiredException extends java.rmi.RemoteException {
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    40
29929
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    41
    /**
32849
a2a6b6d26059 8134426: Add serialVersionUID field to relevant javax.transaction classes
lancea
parents: 29929
diff changeset
    42
     * Specify serialVersionUID for backward compatibility
a2a6b6d26059 8134426: Add serialVersionUID field to relevant javax.transaction classes
lancea
parents: 29929
diff changeset
    43
     */
a2a6b6d26059 8134426: Add serialVersionUID field to relevant javax.transaction classes
lancea
parents: 29929
diff changeset
    44
    private static final long serialVersionUID = -1898806419937446439L;
a2a6b6d26059 8134426: Add serialVersionUID field to relevant javax.transaction classes
lancea
parents: 29929
diff changeset
    45
a2a6b6d26059 8134426: Add serialVersionUID field to relevant javax.transaction classes
lancea
parents: 29929
diff changeset
    46
    /**
29929
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    47
     * Constructs a {@code TransactionRequiredException}.
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    48
     */
28298
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    49
    public TransactionRequiredException() {
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    50
        super();
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    51
    }
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    52
29929
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    53
    /**
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    54
     * Constructs a {@code TransactionRequiredException}.
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    55
     * @param msg the detail message
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    56
     */
28298
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    57
    public TransactionRequiredException(String msg) {
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    58
        super(msg);
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    59
    }
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    60
}