Modified DECLARE/DEFINE to expect seperate scope.
[libsex.git] / tests / framework / ExampleException2.cxx
blobad439c661e22f20e2bd14f28f82de2dbe8fb8c8c
1 /**
2 * @file
4 * Shows how to _define_ an exception class that contains
5 * placeholders in its message template.
6 */
8 #include <libsex/define.hxx>
9 #include <libsex/Exception.hxx>
10 #include <tests/framework/ExampleException2.hxx>
12 // Define ExampleException2 and provide a message template
13 // (see printf for a list and explanation of placeholders).
15 LIBSEX_DEFINE(libsex::Exception, example, ExampleException2, "%s is %d")