#include <ActiveMQException.h>
Inheritance diagram for activemq::exceptions::ActiveMQException:
Public Member Functions | |
ActiveMQException (void) | |
ActiveMQException (const ActiveMQException &ex) | |
ActiveMQException (const char *file, const int lineNumber, const char *msg,...) | |
virtual | ~ActiveMQException () |
virtual const char * | getMessage () const |
virtual void | setMessage (const char *msg,...) |
virtual void | setMark (const char *file, const int lineNumber) |
virtual ActiveMQException * | clone () const |
virtual std::vector< std::pair< std::string, int > > | getStackTrace () const |
virtual void | printStackTrace () const |
virtual void | printStackTrace (std::ostream &stream) const |
virtual std::string | getStackTraceString () const |
virtual ActiveMQException & | operator= (const ActiveMQException &ex) |
Protected Member Functions | |
virtual void | buildMessage (const char *format, va_list &vargs) |
Private Attributes | |
std::string | message |
std::vector< std::pair< std::string, int > > | stackTrace |
|
Default Constructor |
|
Copy Constructor |
|
Constructor - Initializes the file name and line number where this message occured. Sets the message to report, using an optional list of arguments to parse into the message
|
|
|
|
|
|
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.
Reimplemented in activemq::connector::ConnectorException, activemq::connector::stomp::marshal::MarshalException, activemq::connector::stomp::StompConnectorException, activemq::exceptions::IllegalArgumentException, activemq::exceptions::IllegalMonitorStateException, activemq::exceptions::InterruptedException, activemq::exceptions::InvalidStateException, activemq::exceptions::NoSuchElementException, activemq::exceptions::NullPointerException, activemq::exceptions::RuntimeException, activemq::exceptions::UnsupportedOperationException, activemq::io::IOException, activemq::network::SocketException, activemq::transport::BrokerError, and activemq::transport::CommandIOException. |
|
Gets the message for this exception.
|
|
Provides the stack trace for every point where this exception was caught, marked, and rethrown. The first item in the returned vector is the first point where the mark was set (e.g. where the exception was created).
|
|
Gets the stack trace as one contiguous string.
|
|
Assignment operator.
|
|
Prints the stack trace to the given output stream.
|
|
Prints the stack trace to std::err |
|
Adds a file/line number to the stack trace.
|
|
Sets the cause for this exception.
|
|
The cause of this exception. |
|
The stack trace. |