#include "Poco/Foundation.h"
#include <stdexcept>
Go to the source code of this file.
|
#define | POCO_DECLARE_EXCEPTION_CODE(API, CLS, BASE, CODE) |
|
#define | POCO_DECLARE_EXCEPTION(API, CLS, BASE) POCO_DECLARE_EXCEPTION_CODE(API, CLS, BASE, 0) |
|
#define | POCO_IMPLEMENT_EXCEPTION(CLS, BASE, NAME) |
|
◆ POCO_DECLARE_EXCEPTION
◆ POCO_DECLARE_EXCEPTION_CODE
#define POCO_DECLARE_EXCEPTION_CODE |
( |
| API, |
|
|
| CLS, |
|
|
| BASE, |
|
|
| CODE ) |
Value: class API CLS:
public BASE \
{ \
public: \
CLS(int code = CODE); \
CLS(const std::string& msg, int code = CODE); \
CLS(const std::string& msg, const std::string& arg, int code = CODE); \
CLS(
const std::string& msg,
const Poco::Exception& exc,
int code = CODE); \
CLS(const CLS& exc); \
~CLS() noexcept; \
CLS& operator = (const CLS& exc); \
const char* name() const noexcept; \
const char* className() const noexcept; \
Poco::Exception* clone() const; \
void rethrow() const; \
};
Definition at line 140 of file Exception.h.
◆ POCO_IMPLEMENT_EXCEPTION
#define POCO_IMPLEMENT_EXCEPTION |
( |
| CLS, |
|
|
| BASE, |
|
|
| NAME ) |