Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtPrivate::ExceptionStore Class Reference

#include <qexception.h>

+ Collaboration diagram for QtPrivate::ExceptionStore:

Public Member Functions

void setException (const QException &e)
 
void setException (std::exception_ptr e)
 
bool hasException () const
 
std::exception_ptr exception () const
 
void throwPossibleException ()
 
Q_NORETURN void rethrowException () const
 

Public Attributes

std::exception_ptr exceptionHolder
 

Detailed Description

Definition at line 55 of file qexception.h.

Member Function Documentation

◆ exception()

std::exception_ptr QtPrivate::ExceptionStore::exception ( ) const

Definition at line 208 of file qexception.cpp.

References exceptionHolder.

◆ hasException()

bool QtPrivate::ExceptionStore::hasException ( ) const

Definition at line 203 of file qexception.cpp.

References exceptionHolder.

Referenced by rethrowException(), setException(), setException(), and throwPossibleException().

+ Here is the caller graph for this function:

◆ rethrowException()

void QtPrivate::ExceptionStore::rethrowException ( ) const

Definition at line 219 of file qexception.cpp.

References exceptionHolder, hasException(), and Q_ASSERT.

Referenced by QFutureInterfaceBase::rethrowPossibleException(), QFutureInterfaceBase::waitForFinished(), and QFutureInterfaceBase::waitForResult().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setException() [1/2]

void QtPrivate::ExceptionStore::setException ( const QException & e)

Definition at line 187 of file qexception.cpp.

References exceptionHolder, hasException(), Q_ASSERT, and QException::raise().

Referenced by QFutureInterfaceBasePrivate::Data::setException().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setException() [2/2]

void QtPrivate::ExceptionStore::setException ( std::exception_ptr e)

Definition at line 197 of file qexception.cpp.

References exceptionHolder, hasException(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ throwPossibleException()

void QtPrivate::ExceptionStore::throwPossibleException ( )

Definition at line 213 of file qexception.cpp.

References exceptionHolder, and hasException().

+ Here is the call graph for this function:

Member Data Documentation

◆ exceptionHolder

std::exception_ptr QtPrivate::ExceptionStore::exceptionHolder

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