Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2006, Red Hat Middleware LLC, and individual contributors
   * as indicated by the @author tags.
   * See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   * This copyrighted material is made available to anyone wishing to use,
   * modify, copy, or redistribute it subject to the terms and conditions
   * of the GNU Lesser General Public License, v. 2.1.
  * This program is distributed in the hope that it will be useful, but WITHOUT A
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
  * You should have received a copy of the GNU Lesser General Public License,
  * v.2.1 along with this distribution; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  * MA  02110-1301, USA.
  *
  * (C) 2005-2006,
  * @author JBoss Inc.
  */
 /*
  * Copyright (C) 1998, 1999, 2000,
  *
  * Arjuna Solutions Limited,
  * Newcastle upon Tyne,
  * Tyne and Wear,
  * UK.
  *
  * $Id: NotImplementedException.java 2342 2006-03-30 13:06:17Z  $
  */
 
 package com.arjuna.ats.jta.exceptions;

Thrown by TransactionSynchronizationRegistry implementation if the transaction has rolled back. We have to do this because JTA 1.1 took the decision to hide or ignore one of the exceptions that registerSynchronization may otherwise throw!

Author(s):
Mark Little (mark@arjuna.com)
Version:
$Id: NotImplementedException.java 2342 2006-03-30 13:06:17Z $
Since:
JTS 1.2.4.
 
 
 public class RollbackException extends IllegalStateException
 {
     static final long serialVersionUID = -2708657802308998286L;

    
Constructs a new exception with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to java.lang.Throwable.initCause(java.lang.Throwable).
 
     public RollbackException()
     {
         super();
     }

    
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to java.lang.Throwable.initCause(java.lang.Throwable).

Parameters:
message the detail message. The detail message is saved for later retrieval by the java.lang.Throwable.getMessage() method.
 
     public RollbackException(String message)
     {
         super(message);
     }

    
Constructs a new exception with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

Parameters:
message the detail message (which is saved for later retrieval by the java.lang.Throwable.getMessage() method).
cause the cause (which is saved for later retrieval by the java.lang.Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Since:
1.4
 
     public RollbackException(String messageThrowable cause)
     {
         super(messagecause);
     }

    
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for exceptions that are little more than wrappers for other throwables (for example, java.security.PrivilegedActionException).

Parameters:
cause the cause (which is saved for later retrieval by the java.lang.Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Since:
1.4
    public RollbackException(Throwable cause)
    {
        super(cause);
    }
New to GrepCode? Check out our FAQ X