4 * Shows how to _define_ an exception class that contains
5 * placeholders in its message template.
8 // Remember to adjust include path (replace "source" by "libsex").
9 #include <source/define.hxx>
10 #include <source/Exception.hxx>
11 #include <tests/framework/ExampleException2.hxx>
13 // Define ExampleException2 and provide a message template
14 // (see printf for a list and explanation of placeholders).
16 LIBSEX_DEFINE(libsex::Exception
, ExampleException2
, "%s is %d")