cms::ResourceAllocationException Class Reference

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

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

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

Public Member Functions

 ResourceAllocationException ()
 ResourceAllocationException (const ResourceAllocationException &ex)
 ResourceAllocationException (const std::string &message)
 ResourceAllocationException (const std::string &message, const std::exception *cause)
 ResourceAllocationException (const std::string &message, const std::exception *cause, const std::vector< std::pair< std::string, int > > &stackTrace)
virtual ~ResourceAllocationException () throw ()
virtual
ResourceAllocationException
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 ResourceAllocationException.

Since:
2.3

Constructor & Destructor Documentation

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

Member Function Documentation

virtual ResourceAllocationException* cms::ResourceAllocationException::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