The RangeError class.
More...
#include <exceptions.h>
|
| RangeError ()=delete |
| Default Constructor.
|
|
| RangeError (const char *file, int line, const QString &msg=QString("Range Error")) noexcept |
| The default constructor.
|
|
template<typename Tval , typename Tmin , typename Tmax > |
| RangeError (const char *file, int line, const Tval &value, const Tmin &min, const Tmax &max) noexcept |
|
| RangeError (const RangeError &other) noexcept |
| The copy constructor (needed for clone())
|
|
virtual void | raise () const override |
|
virtual RangeError * | clone () const override |
|
| 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.
|
|
| 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 RangeError class.
This exception class is used for range under-/overflows.
- See also
- Exception
◆ RangeError() [1/4]
◆ RangeError() [2/4]
RangeError |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const QString & |
msg = QString("Range Error") |
|
) |
| |
|
noexcept |
◆ RangeError() [3/4]
template<typename Tval , typename Tmin , typename Tmax >
RangeError |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const Tval & |
value, |
|
|
const Tmin & |
min, |
|
|
const Tmax & |
max |
|
) |
| |
|
inlinenoexcept |
Constructor which produces a message like "42 not in range [13..37]"
- Parameters
-
◆ RangeError() [4/4]
The copy constructor (needed for clone())
◆ raise()
virtual void raise |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ clone()
The documentation for this class was generated from the following files: