18#ifndef _ACTIVEMQ_COMMANDS_BROKERERROR_H_
19#define _ACTIVEMQ_COMMANDS_BROKERERROR_H_
53 std::string exceptionClass;
54 std::vector< decaf::lang::Pointer<StackTraceElement> > stackTraceElements;
114 this->message = message;
122 return exceptionClass;
130 this->exceptionClass = exceptionClass;
154 return stackTraceElements;
162 this->stackTraceElements = stackTraceElements;
169 return this->exCause;
179 this->exCause = exCause;
#define AMQCPP_API
Definition Config.h:30
BaseCommand()
Definition BaseCommand.h:35
virtual void setStackTraceElements(const std::vector< decaf::lang::Pointer< StackTraceElement > > &stackTraceElements)
Sets the Stack Trace Elements for this Exception.
Definition BrokerError.h:161
virtual decaf::lang::Pointer< commands::Command > visit(activemq::state::CommandVisitor *visitor)
Allows a Visitor to visit this command and return a response to the command based on the command type...
exceptions::ActiveMQException createExceptionObject()
Creates and returns a ActiveMQException object that contains the error data from the Broker.
virtual const std::string & getExceptionClass() const
Gets the string holding the Exception Class name.
Definition BrokerError.h:121
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
virtual void setExceptionClass(const std::string &exceptionClass)
Sets the string that contains the Exception Class name.
Definition BrokerError.h:129
virtual void setMessage(const std::string &message)
Sets the string that contains the error Message.
Definition BrokerError.h:113
virtual const decaf::lang::Pointer< BrokerError > & getCause() const
Gets the Broker Error that caused this exception.
Definition BrokerError.h:137
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
Definition BrokerError.h:70
decaf::lang::Pointer< decaf::lang::Exception > getLocalException() const
Definition BrokerError.h:168
BrokerError(decaf::lang::Pointer< decaf::lang::Exception > exCause)
virtual BrokerError * cloneDataStructure() const
Clone this object and return a new instance that the caller now owns, this will be an exact copy of t...
Definition BrokerError.h:79
virtual const std::vector< decaf::lang::Pointer< StackTraceElement > > & getStackTraceElements() const
Gets the Stack Trace Elements for the Exception.
Definition BrokerError.h:153
virtual void setCause(const decaf::lang::Pointer< BrokerError > &cause)
Sets the Broker Error that caused this exception.
Definition BrokerError.h:145
virtual const std::string & getMessage() const
Gets the string holding the error message.
Definition BrokerError.h:105
void setLocalException(decaf::lang::Pointer< decaf::lang::Exception > exCause)
Sets the Pointer to the local exception that is the source of this Error.
Definition BrokerError.h:178
Definition DataStructure.h:27
Definition ActiveMQException.h:35
Interface for an Object that can visit the various Command Objects that are sent from and to this cli...
Definition CommandVisitor.h:69
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition Pointer.h:53
Definition ActiveMQBlobMessage.h:28
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24
std::string MethodName
Definition BrokerError.h:44
std::string ClassName
Definition BrokerError.h:42
StackTraceElement()
Definition BrokerError.h:47
int LineNumber
Definition BrokerError.h:45
std::string FileName
Definition BrokerError.h:43