activemq-cpp-3.6.0
activemq::exceptions::BrokerException Class Reference

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

Inheritance diagram for activemq::exceptions::BrokerException:

Public Member Functions

 BrokerException ()
 BrokerException (const exceptions::ActiveMQException &ex)
 BrokerException (const BrokerException &ex)
 BrokerException (const char *file, const int lineNumber, const char *msg,...)
 BrokerException (const char *file, const int lineNumber, const commands::BrokerError *error)
virtual BrokerExceptionclone () const
 Clones this exception.
virtual ~BrokerException () throw ()
- Public Member Functions inherited from activemq::exceptions::ActiveMQException
 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 cms::CMSException convertToCMSException () const
 Converts this exception to a new CMSException.
- Public Member Functions inherited from decaf::lang::Exception
 Exception ()
 Default Constructor.
 Exception (const Exception &ex)
 Copy Constructor.
 Exception (const std::exception *cause)
 Constructor.
 Exception (const char *file, const int lineNumber, const char *msg,...)
 Constructor - Initializes the file name and line number where this message occurred.
 Exception (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 ~Exception () throw ()
virtual std::string getMessage () const
 Gets the message for this exception.
virtual const std::exception * getCause () const
 Gets the exception that caused this one to be thrown, this allows for chaining of exceptions in the case of a method that throws only a particular exception but wishes to allow for the real causal exception to be passed only in case the caller knows about that type of exception and wishes to respond to it.
virtual void initCause (const std::exception *cause)
 Initializes the contained cause exception with the one given.
virtual const char * what () const throw ()
 Implement method from std::exception.
virtual void setMessage (const char *msg,...)
 Sets the cause for this exception.
virtual void setMark (const char *file, const int lineNumber)
 Adds a file/line number to the stack trace.
virtual std::vector< std::pair
< std::string, int > > 
getStackTrace () const
 Provides the stack trace for every point where this exception was caught, marked, and rethrown.
virtual void printStackTrace () const
 Prints the stack trace to std::err.
virtual void printStackTrace (std::ostream &stream) const
 Prints the stack trace to the given output stream.
virtual std::string getStackTraceString () const
 Gets the stack trace as one contiguous string.
Exceptionoperator= (const Exception &ex)
 Assignment operator, copies one Exception to another.
- Public Member Functions inherited from decaf::lang::Throwable
 Throwable ()
virtual ~Throwable () throw ()

Additional Inherited Members

- Protected Member Functions inherited from decaf::lang::Exception
virtual void setStackTrace (const std::vector< std::pair< std::string, int > > &trace)
virtual void buildMessage (const char *format, va_list &vargs)
- Protected Attributes inherited from decaf::lang::Exception
ExceptionData * data

Constructor & Destructor Documentation

activemq::exceptions::BrokerException::BrokerException ( )
activemq::exceptions::BrokerException::BrokerException ( const exceptions::ActiveMQException ex)
activemq::exceptions::BrokerException::BrokerException ( const BrokerException ex)
activemq::exceptions::BrokerException::BrokerException ( const char *  file,
const int  lineNumber,
const char *  msg,
  ... 
)
activemq::exceptions::BrokerException::BrokerException ( const char *  file,
const int  lineNumber,
const commands::BrokerError error 
)
virtual activemq::exceptions::BrokerException::~BrokerException ( ) throw ()
virtual

Member Function Documentation

virtual BrokerException* activemq::exceptions::BrokerException::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
new BrokerException instance that is a clone of this one.

Reimplemented from activemq::exceptions::ActiveMQException.


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