3 * Shows how to _define_ a basic exception class.
6 // Remember to adjust include path (replace "source" by "libsex").
7 #include <source/define.hxx>
8 #include <source/Exception.hxx>
9 #include <tests/framework/ExampleException1.hxx>
11 // Define ExampleException1 and provide a message template.
12 // If you want to localize your exceptions, you just have
13 // to localize the following line.
15 LIBSEX_DEFINE(libsex::Exception
, ExampleException1
, "Error!")