Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | List of all members
BinnedSpectrum::NoSpectrumIntegrated Class Reference

Exception which is thrown if BinnedSpectrum bins are accessed and no PeakSpektrum has been integrated yet i.e. bins_ is empty. More...

#include <OpenMS/COMPARISON/SPECTRA/BinnedSpectrum.h>

Inheritance diagram for BinnedSpectrum::NoSpectrumIntegrated:
BaseException

Public Member Functions

 NoSpectrumIntegrated (const char *file, int line, const char *function, const char *message="BinnedSpectrum hasn't got a PeakSpectrum to base on yet") throw ()
 
virtual ~NoSpectrumIntegrated () throw ()
 
- Public Member Functions inherited from BaseException
 BaseException () noexcept
 Default constructor. More...
 
 BaseException (const char *file, int line, const char *function) noexcept
 Constructor. More...
 
 BaseException (const char *file, int line, const char *function, const std::string &name, const std::string &message) noexcept
 Constructor. More...
 
 BaseException (const BaseException &exception) noexcept
 Copy constructor. More...
 
virtual ~BaseException () noexcept
 Destructor. More...
 
const char * getName () const noexcept
 Returns the name of the exception. More...
 
virtual const char * what () const noexcept
 Returns the error message of the exception. More...
 
int getLine () const noexcept
 Returns the line number where it occurred. More...
 
const char * getFile () const noexcept
 Returns the file where it occurred. More...
 
const char * getFunction () const noexcept
 Returns the function where it occurred. More...
 
const char * getMessage () const noexcept
 Returns the message. More...
 
void setMessage (const std::string &message) noexcept
 Modify the exception's error message. More...
 

Additional Inherited Members

- Protected Attributes inherited from BaseException
const char * file_
 The source file the exception was thrown in. More...
 
int line_
 The line number the exception was thrown in. More...
 
const char * function_
 The source file the exception was thrown in. More...
 
std::string name_
 The name of the exception. More...
 
std::string what_
 A more detailed description of the exception's cause. More...
 

Detailed Description

Exception which is thrown if BinnedSpectrum bins are accessed and no PeakSpektrum has been integrated yet i.e. bins_ is empty.

Constructor & Destructor Documentation

◆ NoSpectrumIntegrated()

NoSpectrumIntegrated ( const char *  file,
int  line,
const char *  function,
const char *  message = "BinnedSpectrum hasn't got a PeakSpectrum to base on yet" 
)
throw (
)

◆ ~NoSpectrumIntegrated()

virtual ~NoSpectrumIntegrated ( )
throw (
)
virtual

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:07 using doxygen 1.8.13