LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RuntimeError Class Reference

The RuntimeError class. More...

#include <exceptions.h>

+ Inheritance diagram for RuntimeError:
+ Collaboration diagram for RuntimeError:

Public Member Functions

 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 RuntimeErrorclone () 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 noexceptoverride
 reimplemented from std::exception::what() More...
 

Detailed Description

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

Constructor & Destructor Documentation

RuntimeError ( )
delete

Default Constructor.

+ Here is the caller graph for this function:

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 ( )
inlinevirtualnoexcept

Destructor.

Member Function Documentation

virtual void raise ( ) const
inlineoverridevirtual

Reimplemented from Exception.

Reimplemented in FileParseError, and RangeError.

virtual RuntimeError* clone ( ) const
inlineoverridevirtual

Reimplemented from Exception.

Reimplemented in FileParseError, and RangeError.

+ Here is the call graph for this function:


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