Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
MyException Class Reference
Inheritance diagram for MyException:
Collaboration diagram for MyException:

Public Member Functions

void raise () const override
 [2]
MyExceptionclone () const override
 [2]
void raise () const override
 In your QException subclass, reimplement raise() like this:
MyExceptionclone () const override
 In your QException subclass, reimplement clone() like this:
Public Member Functions inherited from QException
 QException ()=default
 Constructs a QException object.
 ~QException () noexcept
 Destroys this QException object.
 QException (const QException &)=default
 Creates a copy of other.
QExceptionoperator= (const QException &)=default
 Copy-assigns other over this object.

Detailed Description

Definition at line 19 of file src_corelib_thread_qexception.cpp.

Member Function Documentation

◆ clone() [1/2]

MyException * MyException::clone ( ) const
overridevirtual

[2]

[3]

Reimplemented from QException.

Definition at line 48 of file src_corelib_thread_qexception.cpp.

◆ clone() [2/2]

MyException * MyException::clone ( ) const
overridevirtual

In your QException subclass, reimplement clone() like this:

MyException *MyException::clone() const { return new MyException(*this); }

Reimplemented from QException.

◆ raise() [1/2]

void MyException::raise ( ) const
overridevirtual

[2]

Reimplemented from QException.

Definition at line 43 of file src_corelib_thread_qexception.cpp.

◆ raise() [2/2]

void MyException::raise ( ) const
overridevirtual

In your QException subclass, reimplement raise() like this:

void MyException::raise() const { throw *this; }

Reimplemented from QException.


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