libpappsomspp
Library for mass spectrometry
pappso::PappsoException Class Reference

#include <pappsoexception.h>

Inheritance diagram for pappso::PappsoException:
pappso::ExceptionInterrupted pappso::ExceptionNotFound pappso::ExceptionNotImplemented pappso::ExceptionNotPossible pappso::ExceptionNotRecognized pappso::ExceptionOutOfRange pappso::XtandemError

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

virtual const QString& pappso::PappsoException::qwhat ( ) const
throw (
)
inlinevirtual

Definition at line 68 of file pappsoexception.h.

69  {
70  return m_message;
71  }

References m_message.

Referenced by pappso::PeptideFragmentIonListBase::PeptideFragmentIonListBase(), pappso::XtandemHyperscore::XtandemHyperscore(), pappso::MsRunXicExtractorDiskBuffer::appendSliceInBuffer(), pappso::XtandemHyperscoreBis::computeXtandemHyperscore(), pappso::AaModification::createInstance(), pappso::TraceDetectionZivy::detect(), pappso::MsRunXicExtractorDiskBuffer::flushBufferOnDisk(), pappso::XtandemHyperscore::getHyperscore(), pappso::XtandemHyperscoreBis::getHyperscore(), pappso::AaModification::getInstance(), pappso::AaModification::getInstanceMutation(), pappso::Protein::getMass(), pappso::TimsData::getMassSpectrumCstSPtrByRawIndex(), pappso::TimsFrameType1::getMassSpectrumSPtr(), pappso::TimsData::getQualifiedMassSpectrumByRawIndex(), pappso::TimsData::getQualifiedMs2MassSpectrumByPrecursorId(), pappso::TimsData::getRawMs2ByPrecursorId(), pappso::MsRunReader::getRetentionTimeLine(), pappso::TimsFrameType1::getScanIndexList(), pappso::TimsFrameType1::getScanIntensities(), pappso::MsRunReader::getTicChromatogram(), pappso::TimsBinDec::getTimsFrameSPtrByOffset(), pappso::TimsMsFileReader::initialize(), pappso::operator>>(), pappso::MsRunXicExtractorDisk::prepareExtractor(), pappso::TimsMsRunReaderMs2::qualifiedMassSpectrum(), pappso::PwizMsRunReader::qualifiedMassSpectrumFromPwizSpectrumPtr(), pappso::TimsData::rawReaderSpectrumCollectionByMsLevel(), pappso::MsRunReader::scanNumber2SpectrumIndex(), pappso::TimsBinDec::startLinearRead(), and pappso::MsRunXicExtractorDisk::unserializeSlice().

◆ 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: