cms::TransactionInProgressException Class Reference

This exception is thrown when an operation is invalid because a transaction is in progress. More...

#include <src/main/cms/TransactionInProgressException.h>

Inheritance diagram for cms::TransactionInProgressException:
Inheritance graph
[legend]

Public Member Functions

 TransactionInProgressException ()
 TransactionInProgressException (const TransactionInProgressException &ex)
 TransactionInProgressException (const std::string &message)
 TransactionInProgressException (const std::string &message, const std::exception *cause)
 TransactionInProgressException (const std::string &message, const std::exception *cause, const std::vector< std::pair< std::string, int > > &stackTrace)
virtual ~TransactionInProgressException () throw ()
virtual
TransactionInProgressException
clone ()
 Creates a cloned version of this CMSException instance.

Detailed Description

This exception is thrown when an operation is invalid because a transaction is in progress.

For instance, an attempt to call Session::commit when a session is part of a distributed transaction should throw a TransactionInProgressException.

Since:
2.3

Constructor & Destructor Documentation

cms::TransactionInProgressException::TransactionInProgressException (  ) 
cms::TransactionInProgressException::TransactionInProgressException ( const TransactionInProgressException ex  ) 
cms::TransactionInProgressException::TransactionInProgressException ( const std::string &  message  ) 
cms::TransactionInProgressException::TransactionInProgressException ( const std::string &  message,
const std::exception *  cause 
)
cms::TransactionInProgressException::TransactionInProgressException ( const std::string &  message,
const std::exception *  cause,
const std::vector< std::pair< std::string, int > > &  stackTrace 
)
virtual cms::TransactionInProgressException::~TransactionInProgressException (  )  throw () [virtual]

Member Function Documentation

virtual TransactionInProgressException* cms::TransactionInProgressException::clone (  )  [virtual]

Creates a cloned version of this CMSException instance.

This method passes on ownership of the contained cause exception pointer to the clone. This method is mainly useful to the CMS provider.

Returns:
new pointer that is a clone of this Exception, caller owns.

Reimplemented from cms::CMSException.


The documentation for this class was generated from the following file:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1