activemq::exceptions::ActiveMQException Class Reference

#include <src/main/activemq/exceptions/ActiveMQException.h>

Inheritance diagram for activemq::exceptions::ActiveMQException:
Inheritance graph
[legend]

Public Member Functions

 ActiveMQException ()
 Default Constructor.
 ActiveMQException (const ActiveMQException &ex)
 Copy Constructor.
 ActiveMQException (const decaf::lang::Exception &ex)
 Copy Constructor.
 ActiveMQException (const char *file, const int lineNumber, const char *msg,...)
 Constructor - Initializes the file name and line number where this message occurred.
 ActiveMQException (const char *file, const int lineNumber, const std::exception *cause, const char *msg,...)
 Constructor - Initializes the file name and line number where this message occurred.
virtual ~ActiveMQException () throw ()
virtual ActiveMQExceptionclone () const
 Clones this exception.
virtual cms::CMSException convertToCMSException () const
 Converts this exception to a new CMSException.

Constructor & Destructor Documentation

activemq::exceptions::ActiveMQException::ActiveMQException (  ) 

Default Constructor.

activemq::exceptions::ActiveMQException::ActiveMQException ( const ActiveMQException ex  ) 

Copy Constructor.

Parameters:
ex The Exception whose internal data is copied into this instance.
activemq::exceptions::ActiveMQException::ActiveMQException ( const decaf::lang::Exception ex  ) 

Copy Constructor.

Parameters:
ex The Exception whose internal data is copied into this instance.
activemq::exceptions::ActiveMQException::ActiveMQException ( const char *  file,
const int  lineNumber,
const char *  msg,
  ... 
)

Constructor - Initializes the file name and line number where this message occurred.

Sets the message to report, using an optional list of arguments to parse into the message.

Parameters:
file The file name where exception occurs.
lineNumber The line number where the exception occurred.
msg The message to report.
... The list of primitives that are formatted into the message.
activemq::exceptions::ActiveMQException::ActiveMQException ( const char *  file,
const int  lineNumber,
const std::exception *  cause,
const char *  msg,
  ... 
)

Constructor - Initializes the file name and line number where this message occurred.

Sets the message to report, using an optional list of arguments to parse into the message.

Parameters:
file The file name where exception occurs
lineNumber The line number where the exception occurred.
cause The exception that was the cause for this one to be thrown.
msg The message to report
... list of primitives that are formatted into the message
virtual activemq::exceptions::ActiveMQException::~ActiveMQException (  )  throw () [virtual]

Member Function Documentation

virtual ActiveMQException* activemq::exceptions::ActiveMQException::clone (  )  const [virtual]

Clones this exception.

This is useful for cases where you need to preserve the type of the original exception as well as the message. All subclasses should override.

Returns:
Copy of this Exception object

Reimplemented from decaf::lang::Exception.

Reimplemented in activemq::exceptions::BrokerException, and activemq::exceptions::ConnectionFailedException.

virtual cms::CMSException activemq::exceptions::ActiveMQException::convertToCMSException (  )  const [virtual]

Converts this exception to a new CMSException.

Returns:
a CMSException with the data from this exception

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