Prepared release.
[libsex.git] / tests / framework / ExampleException2.hxx
blobb1d3522a178cf904815a6b05b71490563400ed6a
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 // Remember to adjust include path (replace "source" by "libsex").
15 #include <source/declare.hxx>
16 #include <source/Exception.hxx>
18 // ExampleException2 inherits from libsex::Exception.
19 LIBSEX_DECLARE(libsex::Exception, ExampleException2)
21 #endif