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

Int underflow exception. More...

#include <OpenMS/CONCEPT/Exception.h>

Inheritance diagram for IndexUnderflow:
BaseException

Public Member Functions

 IndexUnderflow (const char *file, int line, const char *function, SignedSize index=0, Size size=0) throw ()
 
- Public Member Functions inherited from BaseException
 BaseException () throw ()
 Default constructor. More...
 
 BaseException (const char *file, int line, const char *function) throw ()
 Constructor. More...
 
 BaseException (const char *file, int line, const char *function, const std::string &name, const std::string &message) throw ()
 Constructor. More...
 
 BaseException (const BaseException &exception) throw ()
 Copy constructor. More...
 
virtual ~BaseException () throw ()
 Destructor. More...
 
const char * getName () const throw ()
 Returns the name of the exception. More...
 
virtual const char * what () const throw ()
 Returns the error message of the exception. More...
 
int getLine () const throw ()
 Returns the line number where it occurred. More...
 
const char * getFile () const throw ()
 Returns the file where it occurred. More...
 
const char * getFunction () const throw ()
 Returns the function where it occurred. More...
 
const char * getMessage () const throw ()
 Returns the message. More...
 
void setMessage (const std::string &message) throw ()
 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

Int underflow exception.

Throw this exception to indicate an index that was smaller than allowed. The constructor has two additional arguments, the values of which should be set to the index that caused the failure and the smallest allowed value to simplify debugging.

Parameters
indexthe value of the index causing the problem
sizesmallest value allowed for index

Constructor & Destructor Documentation

IndexUnderflow ( const char *  file,
int  line,
const char *  function,
SignedSize  index = 0,
Size  size = 0 
)
throw (
)

OpenMS / TOPP release 2.0.0 Documentation generated on Tue Nov 1 2016 16:34:46 using doxygen 1.8.11