src/java.transaction/share/classes/javax/transaction/InvalidTransactionException.java
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 32849 jdk/src/java.transaction/share/classes/javax/transaction/InvalidTransactionException.java@a2a6b6d26059
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
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 the request carried an invalid transaction
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    36
 * context. For example, this exception could be raised if an error
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    37
 * occured when trying to register a resource.
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    38
 */
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    39
@SuppressWarnings("serial")             // serialVersionUID intentionally omitted
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    40
public class InvalidTransactionException extends java.rmi.RemoteException {
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    41
29929
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    42
    /**
32849
a2a6b6d26059 8134426: Add serialVersionUID field to relevant javax.transaction classes
lancea
parents: 29929
diff changeset
    43
     * Specify serialVersionUID for backward compatibility
a2a6b6d26059 8134426: Add serialVersionUID field to relevant javax.transaction classes
lancea
parents: 29929
diff changeset
    44
     */
a2a6b6d26059 8134426: Add serialVersionUID field to relevant javax.transaction classes
lancea
parents: 29929
diff changeset
    45
    private static final long serialVersionUID = 3597320220337691496L;
a2a6b6d26059 8134426: Add serialVersionUID field to relevant javax.transaction classes
lancea
parents: 29929
diff changeset
    46
a2a6b6d26059 8134426: Add serialVersionUID field to relevant javax.transaction classes
lancea
parents: 29929
diff changeset
    47
    /**
29929
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    48
     * Constructs an {@code InvalidTransactionException}.
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    49
     */
28298
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    50
    public InvalidTransactionException() {
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    51
        super();
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    52
    }
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    53
29929
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    54
    /**
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    55
     * Constructs an {@code InvalidTransactionException}.
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    56
     * @param msg the detail message
98aafceddece 8077991: Missing javadoc in exceptions types in javax.transaction
darcy
parents: 28298
diff changeset
    57
     */
28298
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    58
    public InvalidTransactionException(String msg) {
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    59
        super(msg);
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    60
    }
7fca67ba0b9f 8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff changeset
    61
}