Class ClientTransactionNotActiveException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.qpid.protonj2.client.exceptions.ClientException
-
- org.apache.qpid.protonj2.client.exceptions.ClientIllegalStateException
-
- org.apache.qpid.protonj2.client.exceptions.ClientTransactionNotActiveException
-
- All Implemented Interfaces:
Serializable
public class ClientTransactionNotActiveException extends ClientIllegalStateException
Thrown when a client attempt to commit or roll-back when no transaction has been declared.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientTransactionNotActiveException(String message)
Creates a new transaction not active exception.ClientTransactionNotActiveException(String message, Throwable cause)
Creates a new transaction not active exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ClientTransactionNotActiveException
public ClientTransactionNotActiveException(String message)
Creates a new transaction not active exception.- Parameters:
message
- The message that describes the reason for the error.
-
ClientTransactionNotActiveException
public ClientTransactionNotActiveException(String message, Throwable cause)
Creates a new transaction not active exception.- Parameters:
message
- The message that describes the reason for the error.cause
- An exception that further defines the reason for the error.
-
-