libpappsomspp
Library for mass spectrometry
pappso::PappsoException Class Reference

#include <pappsoexception.h>

Inheritance diagram for pappso::PappsoException:
pappso::ExceptionNotFound pappso::ExceptionNotImplemented pappso::ExceptionNotPossible pappso::ExceptionNotRecognized 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 ()
 
const char * what () const noexcept override
 
virtual ~PappsoException () throw ()
 

Private Attributes

std::string m_stdMessage
 
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  m_stdMessage.assign(m_message.toStdString());
49  }

References m_message, m_stdMessage, and message().

Referenced by clone().

◆ PappsoException() [2/2]

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

Definition at line 51 of file pappsoexception.h.

52  {
53  m_message = other.m_message;
54  m_stdMessage.assign(m_message.toStdString());
55  }

References m_message, and m_stdMessage.

◆ ~PappsoException()

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

Definition at line 79 of file pappsoexception.h.

80  {
81  }

Member Function Documentation

◆ clone()

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

◆ qwhat()

◆ raise()

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

Definition at line 57 of file pappsoexception.h.

58  {
59  throw *this;
60  }

◆ what()

const char* pappso::PappsoException::what ( ) const
inlineoverridenoexcept

Definition at line 74 of file pappsoexception.h.

75  {
76  return m_stdMessage.c_str();
77  }

References m_stdMessage.

Member Data Documentation

◆ m_message

QString pappso::PappsoException::m_message
private

Definition at line 85 of file pappsoexception.h.

Referenced by PappsoException(), and qwhat().

◆ m_stdMessage

std::string pappso::PappsoException::m_stdMessage
private

Definition at line 84 of file pappsoexception.h.

Referenced by PappsoException(), and what().


The documentation for this class was generated from the following file:
pappso::PappsoException::m_message
QString m_message
Definition: pappsoexception.h:85
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
pappso::PappsoException::m_stdMessage
std::string m_stdMessage
Definition: pappsoexception.h:84