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;
47  m_message = message;
48  m_stdMessage.assign(m_message.toStdString());
49  }

References m_message, and m_stdMessage.

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

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: