LeechCraft  0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LeechCraft::Util::ConcurrentException< T > Class Template Reference

A concurrent exception that plays nicely with Qt. More...

#include "concurrentexception.h"

+ Inheritance diagram for LeechCraft::Util::ConcurrentException< T >:
+ Collaboration diagram for LeechCraft::Util::ConcurrentException< T >:

Public Member Functions

 ConcurrentException ()=default
 Default-constructs the exception object. More...
 
template<typename... Args>
 ConcurrentException (Args &&...args)
 Constructs the exception object with the given args. More...
 
void raise () const override
 Rethrows an exception of exactly this type and state. More...
 
ConcurrentException< T > * clone () const override
 Constructs a copy of this object. More...
 
const char * what () const noexceptoverride
 Overrides base pure virtual. More...
 

Detailed Description

template<typename T>
class LeechCraft::Util::ConcurrentException< T >

A concurrent exception that plays nicely with Qt.

This class can be used to make some third-party exception type compatible with the QtConcurrent framework, which requires all exceptions to be derived from a Qt's base exception class.

This class wraps differences between Qt4's QtConcurrent::Exception and Qt5's QException and provides an uniform interface.

Template Parameters
TThe base type of the exception.

Definition at line 51 of file concurrentexception.h.

Constructor & Destructor Documentation

template<typename T >
LeechCraft::Util::ConcurrentException< T >::ConcurrentException ( )
default

Default-constructs the exception object.

template<typename T >
template<typename... Args>
LeechCraft::Util::ConcurrentException< T >::ConcurrentException ( Args &&...  args)
inline

Constructs the exception object with the given args.

Parameters
[in]argsThe argments to pass to the constructor of the base exception T.
Template Parameters
ArgsThe types of the arguments of the constructor of T.

Definition at line 71 of file concurrentexception.h.

Member Function Documentation

template<typename T >
ConcurrentException<T>* LeechCraft::Util::ConcurrentException< T >::clone ( ) const
inlineoverride

Constructs a copy of this object.

Returns
The copy of this object.

Definition at line 89 of file concurrentexception.h.

template<typename T >
void LeechCraft::Util::ConcurrentException< T >::raise ( ) const
inlineoverride

Rethrows an exception of exactly this type and state.

Exceptions
ConcurrentException<T>

Definition at line 80 of file concurrentexception.h.

template<typename T >
const char* LeechCraft::Util::ConcurrentException< T >::what ( ) const
inlineoverridenoexcept

Overrides base pure virtual.

Calls T::what().

Definition at line 98 of file concurrentexception.h.


The documentation for this class was generated from the following file: