libsex
3.1.0
simple exception library (C++)
|
Macros related to throwing exceptions. More...
#include <libsex/utility.hxx>
Go to the source code of this file.
Defines | |
#define | THROW_ARGLESS(class) |
Macro to throw an exception without any argument. | |
#define | THROW(class, args...) |
Macro to throw an exception with arguments. | |
#define | CHAIN(class, args...) |
Macro to throw another exception when an exception has been caught. |
Macros related to throwing exceptions.
Definition in file throw.hxx.
#define CHAIN | ( | class, | |
args... | |||
) |
{\ throw libsex::formatted<class>(e, __FILE__, __LINE__, ##args); \ }
Macro to throw another exception when an exception has been caught.
Chains the previous exception and the newly created one together.
e
.class | Which exception to throw. |
args... | Arguments for message template. |
#define THROW | ( | class, | |
args... | |||
) |
{ \ throw libsex::formatted<class>(__FILE__, __LINE__, ##args); \ }
Macro to throw an exception with arguments.
class | Which exception to throw. |
args... | Arguments for message template. |