Default exception class. More...
#include <exception.h>
Public Member Functions | |
| Exception (char const *const file, unsigned int const line, std::string const &what) | |
| Exception (char const *const file, unsigned int const line, std::string const &what, char const *const message) | |
| virtual const char * | what () const throw () |
| Returns text (UTF-8) error message for this exception. | |
Default exception class.
Exceptions should not be constructed explicitly. Instead, use the THROW_EXCEPTION() and THROW_EXCEPTION_MESSAGE() macros, which will construct and throw exceptions annotated with the filename and line number of the failure.
The error message returned by what() has the following components:
what passed to the constructor.message passed to the constructor, intended to be used to store error messages from external libraries (although the WindowsException and OpenCL::Exception classes handle this for HRESULT error codes and OpenCL error codes, respectively). Definition at line 56 of file exception.h.
1.8.1.2