LibrePCB Developers Documentation
Loading...
Searching...
No Matches
LogicError Class Referencefinal

The LogicError class. More...

#include <exceptions.h>

+ Inheritance diagram for LogicError:
+ Collaboration diagram for LogicError:

Public Member Functions

 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 LogicErrorclone () const override
 
- Public Member Functions inherited from Exception
 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()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ LogicError() [1/3]

LogicError ( )
delete

Default Constructor.

+ Here is the caller graph for this function:

◆ LogicError() [2/3]

LogicError ( const char *  file,
int  line,
const QString &  msg = QString("Logic Error") 
)
noexcept

The default constructor.

◆ LogicError() [3/3]

LogicError ( const LogicError other)
noexcept

The copy constructor (needed for clone())

Member Function Documentation

◆ raise()

virtual void raise ( ) const
inlineoverridevirtual

Reimplemented from Exception.

◆ clone()

virtual LogicError * clone ( ) const
inlineoverridevirtual

Reimplemented from Exception.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: