Invalid value exception. More...
#include <OpenMS/CONCEPT/Exception.h>
Public Member Functions | |
InvalidValue (const char *file, int line, const char *function, const std::string &message, const std::string &value) throw () | |
![]() | |
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 | |
![]() | |
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... | |
Invalid value exception.
Use this exception to indicate that a given value is not valid, when the value is only allowed to be out of a certain set of values. If the value has to be inside a given range, you should rather use OutOfRange.
InvalidValue | ( | const char * | file, |
int | line, | ||
const char * | function, | ||
const std::string & | message, | ||
const std::string & | value | ||
) | |||
throw | ( | ||
) |
OpenMS / TOPP release 2.0.0 | Documentation generated on Sat May 16 2015 16:14:11 using doxygen 1.8.9.1 |