C
EventHandlerException Class
class SafeRenderer::EventHandlerExceptionAn instance of EventHandlerException class is thrown in case of errors. More...
Header: | #include <EventHandlerException> |
Since: | QtSafeRenderer 2.1 |
Public Functions
EventHandlerException(const char *const reasonArg) | |
const char * | what() const |
Detailed Description
An instance of EventHandlerException class is thrown if an error occurs in the event handler initialization or in the other cases which cannot be recovered from.
Member Function Documentation
EventHandlerException::EventHandlerException(const char *const reasonArg)
Constructs an event handler exception object with a reasonArg. The ownership of the reasonArg pointer is in the calling class and the pointer is not deleted during destructor.
The preferred way is to use the string literal as follow: throw EventHandlerException("Failed to initialize message queue.");
const char *EventHandlerException::what() const
Returns the exception reason. Can be used for logging the error.
Available under certain Qt licenses.
Find out more.