Modified DECLARE/DEFINE to expect seperate scope.
[libsex.git] / tests / framework / ExampleException2.hxx
blob82b5bfd886c6f565c37fe7fca11c652e9305c053
1 /**
2 * @file
4 * Shows how to _declare_ an exception class that uses
5 * placedholders in its message template.
7 * Note that it is _declared_ in exactly the same way as a
8 * basic exception class.
9 */
11 #ifndef EXAMPLEEXCEPTION2_HXX
12 #define EXAMPLEEXCEPTION2_HXX
14 #include <libsex/declare.hxx>
15 #include <libsex/Exception.hxx>
17 namespace example
19 class ExampleException2;
22 // ExampleException2 inherits from libsex::Exception.
23 LIBSEX_DECLARE(libsex::Exception, example, ExampleException2)
25 #endif