org.multiverse.api.exceptions
Class TxnNotAllowedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.multiverse.api.exceptions.TxnExecutionException
                  extended by org.multiverse.api.exceptions.PropagationException
                      extended by org.multiverse.api.exceptions.TxnNotAllowedException
All Implemented Interfaces:
Serializable

public class TxnNotAllowedException
extends PropagationException

A PropagationException thrown when a Txn is found, but is not allowed. A typical cause of this exception is that the PropagationLevel.Never is used and a transaction is available.

Author:
Peter Veentjer.
See Also:
TxnFactoryBuilder.setPropagationLevel(org.multiverse.api.PropagationLevel), Serialized Form

Constructor Summary
TxnNotAllowedException(String message)
          Creates a new NoTransactionAllowedException with the provided message.
TxnNotAllowedException(String message, Throwable cause)
          Creates a new NoTransactionAllowedException with the provided message and cause.
 
Method Summary
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TxnNotAllowedException

public TxnNotAllowedException(String message)
Creates a new NoTransactionAllowedException with the provided message.

Parameters:
message - the message for the exception.

TxnNotAllowedException

public TxnNotAllowedException(String message,
                              Throwable cause)
Creates a new NoTransactionAllowedException with the provided message and cause.

Parameters:
message - the message of the exception.
cause - the cause of the Exception.


Copyright © 2012. All Rights Reserved.