LibrePCB Developers Documentation
|
The LogicError class. More...
#include <exceptions.h>
Public Member Functions | |
LogicError ()=delete | |
Default Constructor. More... | |
LogicError (const char *file, int line, const QString &msg=QString("Logic Error")) noexcept | |
The default constructor. More... | |
LogicError (const LogicError &other) noexcept | |
The copy constructor (needed for clone()) More... | |
virtual void | raise () const override |
virtual LogicError * | clone () const override |
Public Member Functions inherited from Exception | |
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 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).
|
delete |
Default Constructor.
|
noexcept |
The default constructor.
|
noexcept |
The copy constructor (needed for clone())
|
inlineoverridevirtual |
Reimplemented from Exception.
|
inlineoverridevirtual |