31 lines
409 B
C
31 lines
409 B
C
|
|
/**
|
||
|
|
* Exception.h
|
||
|
|
*
|
||
|
|
* Base class for all AMQP exceptions
|
||
|
|
*
|
||
|
|
* @copyright 2014 Copernica BV
|
||
|
|
*/
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Set up namespace
|
||
|
|
*/
|
||
|
|
namespace AMQP {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base exception class
|
||
|
|
*/
|
||
|
|
class Exception : public std::runtime_error
|
||
|
|
{
|
||
|
|
protected:
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
* @param what
|
||
|
|
*/
|
||
|
|
explicit Exception(const std::string &what) : runtime_error(what) {}
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* End of namespace
|
||
|
|
*/
|
||
|
|
}
|