The LogicError class.
More...
#include <exceptions.h>
|
| | LogicError ()=delete |
| | Default Constructor.
|
| |
| | LogicError (const char *file, int line, const QString &msg=QString("Logic Error")) noexcept |
| | The default constructor.
|
| |
| | LogicError (const LogicError &other) noexcept |
| | The copy constructor (needed for clone())
|
| |
| virtual void | raise () const override |
| |
| virtual LogicError * | clone () const override |
| |
| | Exception ()=delete |
| | The default constructor.
|
| |
| | Exception (const Exception &other) noexcept |
| | The copy constructor (needed for clone())
|
| |
| | Exception (const char *file, int line, const QString &msg=QString("Exception")) noexcept |
| | The constructor which is used to throw an exception.
|
| |
| virtual | ~Exception () noexcept |
| | The destructor.
|
| |
| const QString & | getMsg () const |
| | Get the error message (translated)
|
| |
| const QString & | getFile () const |
| | Get the source file where the exception was thrown.
|
| |
| int | getLine () const |
| | Get the line number where the exception was thrown.
|
| |
| const char * | what () const noexcept override |
| | reimplemented from std::exception::what()
|
| |
The LogicError class.
This exception class is used for exceptions related to the internal logic of the program (a thrown LogicError means that there is a bug in the source code).
- See also
- Exception
◆ LogicError() [1/3]
◆ LogicError() [2/3]
| LogicError |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const QString & |
msg = QString("Logic Error") |
|
) |
| |
|
noexcept |
◆ LogicError() [3/3]
The copy constructor (needed for clone())
◆ raise()
| virtual void raise |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ clone()
The documentation for this class was generated from the following files: