Class TxnMandatoryException

All Implemented Interfaces:
Serializable

public class TxnMandatoryException extends PropagationException
A PropagationException thrown when no Txn is available while it is mandatory. A typical cause of this exception is that the PropagationLevel.Mandatory is used.
See Also:
  • Field Details

  • Constructor Details

    • TxnMandatoryException

      public TxnMandatoryException()
      Creates a new TxnMandatoryException.
    • TxnMandatoryException

      public TxnMandatoryException(String message)
      Creates a new TxnMandatoryException with the provided message.
      Parameters:
      message - the message of the exception.
    • TxnMandatoryException

      public TxnMandatoryException(Class clazz, String method)
      Creates a new TxnMandatoryException
      Parameters:
      clazz - the class of the method where the transaction was required
      method - the name of the method where the transaction was required.
    • TxnMandatoryException

      public TxnMandatoryException(String message, Throwable cause)
      Creates a new TxnMandatoryException with the provided message.
      Parameters:
      message - the message of the exception.
      cause - the cause of the exception.