2014-01-04 19:45:04 +08:00
|
|
|
/**
|
|
|
|
|
* Exception.h
|
|
|
|
|
*
|
|
|
|
|
* Base class for all AMQP exceptions
|
|
|
|
|
*
|
|
|
|
|
* @copyright 2014 Copernica BV
|
|
|
|
|
*/
|
|
|
|
|
|
2016-06-23 20:42:50 +08:00
|
|
|
/**
|
|
|
|
|
* Include guard
|
|
|
|
|
*/
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Dependencies
|
|
|
|
|
*/
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
|
2014-01-04 19:45:04 +08:00
|
|
|
/**
|
|
|
|
|
* 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) {}
|
|
|
|
|
};
|
2016-06-23 20:42:50 +08:00
|
|
|
|
2014-01-04 19:45:04 +08:00
|
|
|
/**
|
|
|
|
|
* End of namespace
|
|
|
|
|
*/
|
|
|
|
|
}
|