|
| RuntimeError ()=delete |
| Default Constructor.
|
|
| RuntimeError (const char *file, int line, const QString &msg=QString("Runtime Error")) noexcept |
| The default constructor.
|
|
| RuntimeError (const RuntimeError &other) noexcept |
| The copy constructor (needed for clone())
|
|
virtual | ~RuntimeError () noexcept |
| Destructor.
|
|
virtual void | raise () const override |
|
virtual RuntimeError * | 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 RuntimeError class.
This exception class is used for exceptions detected during runtime, but are not produced because of bugs in the source code. For example if you want to write to a file but the user has no write permissions, this can be a runtime error.
- See also
- Exception