Generic Exception.
More...
#include <QString>
#include <exception>
Generic Exception.
- Author
- JD Gascuel.
- Copyright
- (c) 2011-2016 JD Gascuel. All rights reserved.
- Id
- Exception.h,v ecd627c6ae3a 2016/09/13 15:08:18 jDG
#define DEFINE_EXCEPTION |
( |
|
name, |
|
|
|
parent |
|
) |
| |
Value:struct EXPORT name \
: public parent \
{ explicit inline name(const char* msg) : parent(msg) {} \
explicit inline name(const QString& msg): parent(msg) {} \
}
DEFINE_EXCEPTION |
( |
ReadTimeout |
, |
|
|
Timeout |
|
|
) |
| |
DEFINE_EXCEPTION |
( |
WriteTimeout |
, |
|
|
Timeout |
|
|
) |
| |