OpenMS
Loading...
Searching...
No Matches
NotSorted Class Reference

Array not sorted exception. More...

#include <OpenMS/CONCEPT/Exception.h>

Inheritance diagram for NotSorted:
[legend]
Collaboration diagram for NotSorted:
[legend]

Public Member Functions

 NotSorted (const char *file, int line, const char *function, const std::string &message) noexcept
 
- Public Member Functions inherited from BaseException
 BaseException () noexcept
 Default constructor.
 
 BaseException (const char *file, int line, const char *function) noexcept
 Constructor.
 
 BaseException (const char *file, int line, const char *function, const std::string &name, const std::string &message) noexcept
 Constructor.
 
 BaseException (const BaseException &exception) noexcept
 Copy constructor.
 
 ~BaseException () noexcept override
 Destructor.
 
const char * getName () const noexcept
 Returns the name of the exception.
 
int getLine () const noexcept
 Returns the line number where it occurred.
 
const char * getFile () const noexcept
 Returns the file where it occurred.
 
const char * getFunction () const noexcept
 Returns the function where it occurred.
 
const char * getMessage () const noexcept
 Returns the message.
 

Additional Inherited Members

- Protected Attributes inherited from BaseException
const char * file_
 The source file the exception was thrown in.
 
int line_
 The line number the exception was thrown in.
 
const char * function_
 The source file the exception was thrown in.
 
std::string name_
 The name of the exception.
 

Detailed Description

Array not sorted exception.

Throw this exception to indicate that an array/vector of elements was expected to be sorted, but was found to be unsorted.

Parameters
[in]messageWhat was unsorted?

Constructor & Destructor Documentation

◆ NotSorted()

NotSorted ( const char *  file,
int  line,
const char *  function,
const std::string &  message 
)
noexcept