libpappsomspp
Library for mass spectrometry
pappso::PappsoException Class Reference

#include <pappsoexception.h>

Inheritance diagram for pappso::PappsoException:
pappso::ExceptionNotFound pappso::ExceptionNotImplemented pappso::ExceptionNotPossible pappso::ExceptionOutOfRange

Public Member Functions

 PappsoException (const QString &message) throw ()
 
 PappsoException (const PappsoException &other) throw ()
 
void raise () const override
 
virtual QException * clone () const override
 
virtual const QString & qwhat () const throw ()
 
virtual const char * what () const override throw ()
 
virtual ~PappsoException () throw ()
 

Private Attributes

QString m_message
 

Detailed Description

Definition at line 41 of file pappsoexception.h.

Constructor & Destructor Documentation

◆ PappsoException() [1/2]

pappso::PappsoException::PappsoException ( const QString &  message)
throw (
)
inline

Definition at line 44 of file pappsoexception.h.

45  {
46  qDebug() << message;
48  }

References m_message, and message().

Referenced by clone().

◆ PappsoException() [2/2]

pappso::PappsoException::PappsoException ( const PappsoException other)
throw (
)
inline

Definition at line 50 of file pappsoexception.h.

51  {
52  m_message = other.m_message;
53  }

References m_message.

◆ ~PappsoException()

virtual pappso::PappsoException::~PappsoException ( )
throw (
)
inlinevirtual

Definition at line 77 of file pappsoexception.h.

78  {
79  }

Member Function Documentation

◆ clone()

virtual QException* pappso::PappsoException::clone ( ) const
inlineoverridevirtual

Reimplemented in pappso::ExceptionOutOfRange, pappso::ExceptionNotPossible, pappso::ExceptionNotImplemented, and pappso::ExceptionNotFound.

Definition at line 60 of file pappsoexception.h.

61  {
62  return new PappsoException(*this);
63  }

References PappsoException().

◆ qwhat()

◆ raise()

void pappso::PappsoException::raise ( ) const
inlineoverride

Definition at line 55 of file pappsoexception.h.

56  {
57  throw *this;
58  }

◆ what()

virtual const char* pappso::PappsoException::what ( ) const
throw (
)
inlineoverridevirtual

Definition at line 72 of file pappsoexception.h.

73  {
74  return m_message.toStdString().c_str();
75  }

References m_message.

Member Data Documentation

◆ m_message

QString pappso::PappsoException::m_message
private

Definition at line 82 of file pappsoexception.h.

Referenced by PappsoException(), qwhat(), and what().


The documentation for this class was generated from the following file:
pappso::PappsoException::m_message
QString m_message
Definition: pappsoexception.h:82
message
message(\n${BoldRed}"Now configuring src/widget for ${PROJECT_NAME}"${ColourReset}\n) find_package(Qt5 COMPONENTS Core Gui PrintSupport Svg REQUIRED) if(NOT QCustomPlot_FOUND) message("Still searching for QCustomPlot") find_package(QCustomPlot REQUIRED) add_definitions(-DQCUSTOMPLOT_USE_LIBRARY) endif() SET(PAPPSOWIDGET_CPP_FILES graphicdevicewidget.cpp precisionwidget/precisionwidget.cpp massspectrumwidget/qcpspectrum.cpp massspectrumwidget/massspectrumwidget.cpp xicwidget/qcpxic.cpp xicwidget/xicwidget.cpp plotwidget/colormapplotconfig.cpp plotwidget/baseplotwidget.cpp plotwidget/basetraceplotwidget.cpp plotwidget/ticxicchromtraceplotwidget.cpp plotwidget/massspectraceplotwidget.cpp plotwidget/driftspectraceplotwidget.cpp plotwidget/basecolormapplotwidget.cpp plotwidget/ticxicchrommassspeccolormapplotwidget.cpp plotwidget/ticxicchromdriftspeccolormapplotwidget.cpp plotwidget/driftspecmassspeccolormapplotwidget.cpp) add_library(pappsomspp-widget-static STATIC $
Definition: CMakeLists.txt:6
pappso::PappsoException::PappsoException
PappsoException(const QString &message)
Definition: pappsoexception.h:44