![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Classes | |
class | XbmcCommons::Exception |
Namespaces | |
namespace | XbmcCommons |
Macros | |
#define | XBMCCOMMONS_ATTRIB_EXCEPTION_FORMAT |
#define | XBMCCOMMONS_COPYVARARGS(fmt) |
#define | XBMCCOMMONS_STANDARD_EXCEPTION(E) |
#define | XBMCCOMMONS_HANDLE_UNCHECKED |
Functions | |
XbmcCommons::XBMCCOMMONS_STANDARD_EXCEPTION (UncheckedException) | |
#define XBMCCOMMONS_ATTRIB_EXCEPTION_FORMAT |
#define XBMCCOMMONS_COPYVARARGS | ( | fmt | ) |
#define XBMCCOMMONS_HANDLE_UNCHECKED |
In cases where you catch(...){} you will (may) inadvertently be catching UncheckedException's. Therefore this macro will allow you to do something equivalent to: catch (anything except UncheckedException) {}
In order to avoid catching UncheckedException, use the macro as follows:
try { ... } XBMCCOMMONS_HANDLE_UNCHECKED catch(...){ ... }
#define XBMCCOMMONS_STANDARD_EXCEPTION | ( | E | ) |