com.sun.sgs.app
Class TransactionAbortedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sun.sgs.app.TransactionException
                  extended by com.sun.sgs.app.TransactionAbortedException
All Implemented Interfaces:
ExceptionRetryStatus, Serializable
Direct Known Subclasses:
TransactionConflictException, TransactionTimeoutException

public class TransactionAbortedException
extends TransactionException
implements ExceptionRetryStatus

Thrown when an operation fails because the system aborted the current transaction during the operation.

See Also:
Serialized Form

Constructor Summary
TransactionAbortedException(String message)
          Creates an instance of this class with the specified detail message.
TransactionAbortedException(String message, Throwable cause)
          Creates an instance of this class with the specified detail message and cause.
 
Method Summary
 boolean shouldRetry()
          Provides information about whether an operation that threw this exception should be retried.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionAbortedException

public TransactionAbortedException(String message)
Creates an instance of this class with the specified detail message.

Parameters:
message - the detail message or null

TransactionAbortedException

public TransactionAbortedException(String message,
                                   Throwable cause)
Creates an instance of this class with the specified detail message and cause.

Parameters:
message - the detail message or null
cause - the cause or null
Method Detail

shouldRetry

public boolean shouldRetry()
Provides information about whether an operation that threw this exception should be retried.

This implementation always returns true.

Specified by:
shouldRetry in interface ExceptionRetryStatus
Returns:
true if the operation should be retried, else false

Project Darkstar, Version 0.9.9.6
2009-05-08 15:39:40

Copyright © 2007-2009 Sun Microsystems, Inc. All rights reserved