Modified DECLARE/DEFINE to expect seperate scope.
[libsex.git] / tests / framework / ExampleException1.cxx
blob57a05bf813ddf00b2a2efcd0dd7fdcbffb9fea0e
1 /**
2 * @file
3 * Shows how to _define_ a basic exception class.
4 */
6 #include <libsex/define.hxx>
7 #include <libsex/Exception.hxx>
8 #include <tests/framework/ExampleException1.hxx>
10 // Define ExampleException1 and provide a message template.
11 // If you want to localize your exceptions, you just have
12 // to localize that line.
14 LIBSEX_DEFINE(libsex::Exception, example, ExampleException1, "Error!")