The FileParseError class.
More...
#include <exceptions.h>
|
| FileParseError ()=delete |
| Default Constructor. More...
|
|
| FileParseError (const char *file, int line, const FilePath &filePath, int fileLine=-1, int fileColumn=-1, const QString &invalidFileContent=QString(), const QString &msg=QString("File Parse Error")) noexcept |
| The constructor which is used to throw an exception. More...
|
|
| FileParseError (const FileParseError &other) noexcept |
| The copy constructor (needed for clone()) More...
|
|
virtual void | raise () const override |
|
virtual FileParseError * | clone () const override |
|
| RuntimeError ()=delete |
| Default Constructor. More...
|
|
| RuntimeError (const char *file, int line, const QString &msg=QString("Runtime Error")) noexcept |
| The default constructor. More...
|
|
| RuntimeError (const RuntimeError &other) noexcept |
| The copy constructor (needed for clone()) More...
|
|
virtual | ~RuntimeError () noexcept |
| Destructor. More...
|
|
virtual void | raise () const override |
|
virtual RuntimeError * | clone () const override |
|
| Exception ()=delete |
| The default constructor. More...
|
|
| Exception (const Exception &other) noexcept |
| The copy constructor (needed for clone()) More...
|
|
| Exception (const char *file, int line, const QString &msg=QString("Exception")) noexcept |
| The constructor which is used to throw an exception. More...
|
|
virtual | ~Exception () noexcept |
| The destructor. More...
|
|
const QString & | getMsg () const |
| Get the error message (translated) More...
|
|
const QString & | getFile () const |
| Get the source file where the exception was thrown. More...
|
|
int | getLine () const |
| Get the line number where the exception was thrown. More...
|
|
const char * | what () const noexcept override |
| reimplemented from std::exception::what() More...
|
|
virtual void | raise () const override |
|
virtual Exception * | clone () const override |
|
The FileParseError class.
This exception class is used for errors while parsing files due to invalid file content (for example invalid syntax).
- See also
- Exception
◆ FileParseError() [1/3]
◆ FileParseError() [2/3]
FileParseError |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const FilePath & |
filePath, |
|
|
int |
fileLine = -1 , |
|
|
int |
fileColumn = -1 , |
|
|
const QString & |
invalidFileContent = QString() , |
|
|
const QString & |
msg = QString("File Parse Error") |
|
) |
| |
|
noexcept |
The constructor which is used to throw an exception.
- Parameters
-
◆ FileParseError() [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: