3 * Shows how to _define_ a basic exception class.
6 #include <libsex/define.hxx>
7 #include <libsex/Exception.hxx>
8 #include <tests/framework/ExampleException1.hxx>
10 // Define ExampleException1 and provide a message template.
11 // If you want to localize your exceptions, you just have
12 // to localize that line.
14 LIBSEX_DEFINE(libsex::Exception
, example
, ExampleException1
, "Error!")