37 #include <OpenMS/OpenMSConfig.h>
90 public std::runtime_error
105 BaseException(const
char* file,
int line, const
char* function, const std::
string& name, const std::
string& message) noexcept;
119 const
char* getName() const noexcept;
122 int getLine() const noexcept;
125 const
char* getFile() const noexcept;
128 const
char* getFunction() const noexcept;
131 const
char* getMessage() const noexcept;
144 const
char* function_;
161 Precondition(
const char* file,
int line,
const char*
function,
const std::string& condition) noexcept;
175 Postcondition(
const char* file,
int line,
const char*
function,
const std::string& condition) noexcept;
190 MissingInformation(
const char* file,
int line,
const char*
function,
const std::string& error_message) noexcept;
266 FailedAPICall(
const char* file,
int line,
const char*
function,
const std::string& message) noexcept;
280 InvalidRange(
const char* file,
int line,
const char*
function) noexcept;
281 InvalidRange(
const char* file,
int line,
const char*
function,
const std::string& message) noexcept;
299 InvalidSize(
const char* file,
int line,
const char*
function,
Size size = 0) noexcept;
315 OutOfRange(
const char* file,
int line,
const char*
function) noexcept;
331 InvalidValue(
const char* file,
int line,
const char*
function,
const std::string& message,
const std::string& value) noexcept;
343 InvalidParameter(
const char* file,
int line,
const char*
function,
const std::string& message) noexcept;
358 ConversionError(
const char* file,
int line,
const char*
function,
const std::string& error) noexcept;
389 NullPointer(
const char* file,
int line,
const char*
function) noexcept;
463 OutOfMemory(
const char* file,
int line,
const char*
function,
Size size = 0) noexcept;
499 OutOfGrid(
const char* file,
int line,
const char*
function) noexcept;
513 FileNotFound(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
527 FileNotReadable(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
541 FileNotWritable(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
556 FileNameTooLong(
const char* file,
int line,
const char*
function,
const std::string& filename,
int max_length) noexcept;
570 IOException(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
584 SqlOperationFailed(
const char* file,
int line,
const char*
function,
const std::string& description) noexcept;
598 FileEmpty(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
612 IllegalPosition(
const char* file,
int line,
const char*
function,
float x,
float y,
float z) noexcept;
626 ParseError(
const char* file,
int line,
const char*
function,
const std::string& expression,
const std::string& message) noexcept;
640 UnableToCreateFile(
const char* file,
int line,
const char*
function,
const std::string& filename,
const std::string& message =
"") noexcept;
652 IllegalArgument(
const char* file,
int line,
const char*
function,
const std::string& error_message) noexcept;
664 InternalToolError(
const char* file,
int line,
const char*
function,
const std::string& error_message) noexcept;
678 ElementNotFound(
const char* file,
int line,
const char*
function,
const std::string& element) noexcept;
692 UnableToFit(
const char* file,
int line,
const char*
function,
const std::string& name,
const std::string& message) noexcept;
707 UnableToCalibrate(
const char* file,
int line,
const char*
function,
const std::string& name,
const std::string& message) noexcept;
721 DepletedIDPool(
const char* file,
int line,
const char*
function,
const std::string& name,
const std::string& message) noexcept;
Exception base class.
Definition: Exception.h:91
BaseException() noexcept
Default constructor.
Buffer overflow exception.
Definition: Exception.h:473
BufferOverflow(const char *file, int line, const char *function) noexcept
Invalid conversion exception.
Definition: Exception.h:356
ConversionError(const char *file, int line, const char *function, const std::string &error) noexcept
Exception used if no more unique document ID's can be drawn from ID pool.
Definition: Exception.h:719
DepletedIDPool(const char *file, int line, const char *function, const std::string &name, const std::string &message) noexcept
Division by zero error exception.
Definition: Exception.h:485
DivisionByZero(const char *file, int line, const char *function) noexcept
Element could not be found exception.
Definition: Exception.h:676
ElementNotFound(const char *file, int line, const char *function, const std::string &element) noexcept
A call to an external library (other than OpenMS) went wrong.
Definition: Exception.h:264
FailedAPICall(const char *file, int line, const char *function, const std::string &message) noexcept
File is empty.
Definition: Exception.h:596
FileEmpty(const char *file, int line, const char *function, const std::string &filename) noexcept
File not found exception.
Definition: Exception.h:511
FileNotFound(const char *file, int line, const char *function, const std::string &filename) noexcept
File not readable exception.
Definition: Exception.h:525
FileNotReadable(const char *file, int line, const char *function, const std::string &filename) noexcept
File not writable exception.
Definition: Exception.h:539
FileNotWritable(const char *file, int line, const char *function, const std::string &filename) noexcept
General IOException.
Definition: Exception.h:568
IOException(const char *file, int line, const char *function, const std::string &filename) noexcept
A method or algorithm argument contains illegal values.
Definition: Exception.h:650
IllegalArgument(const char *file, int line, const char *function, const std::string &error_message) noexcept
Invalid 3-dimensional position exception.
Definition: Exception.h:610
IllegalPosition(const char *file, int line, const char *function, float x, float y, float z) noexcept
Illegal self operation exception.
Definition: Exception.h:372
IllegalSelfOperation(const char *file, int line, const char *function) noexcept
Illegal tree operation exception.
Definition: Exception.h:444
IllegalTreeOperation(const char *file, int line, const char *function) noexcept
Incompatible iterator exception.
Definition: Exception.h:416
IncompatibleIterators(const char *file, int line, const char *function) noexcept
Int overflow exception.
Definition: Exception.h:247
IndexOverflow(const char *file, int line, const char *function, SignedSize index=0, Size size=0) noexcept
Int underflow exception.
Definition: Exception.h:209
IndexUnderflow(const char *file, int line, const char *function, SignedSize index=0, Size size=0) noexcept
Invalid iterator exception.
Definition: Exception.h:401
InvalidIterator(const char *file, int line, const char *function) noexcept
Exception indicating that an invalid parameter was handed over to an algorithm.
Definition: Exception.h:341
InvalidParameter(const char *file, int line, const char *function, const std::string &message) noexcept
Invalid range exception.
Definition: Exception.h:278
InvalidRange(const char *file, int line, const char *function, const std::string &message) noexcept
InvalidRange(const char *file, int line, const char *function) noexcept
Invalid UInt exception.
Definition: Exception.h:297
InvalidSize(const char *file, int line, const char *function, Size size=0) noexcept
Invalid value exception.
Definition: Exception.h:329
InvalidValue(const char *file, int line, const char *function, const std::string &message, const std::string &value) noexcept
Not implemented exception.
Definition: Exception.h:430
NotImplemented(const char *file, int line, const char *function) noexcept
Null pointer argument is invalid exception.
Definition: Exception.h:387
NullPointer(const char *file, int line, const char *function) noexcept
Out of grid exception.
Definition: Exception.h:497
OutOfGrid(const char *file, int line, const char *function) noexcept
Out of memory exception.
Definition: Exception.h:461
OutOfMemory(const char *file, int line, const char *function, Size size=0) noexcept
Out of range exception.
Definition: Exception.h:313
OutOfRange(const char *file, int line, const char *function) noexcept
Parse Error exception.
Definition: Exception.h:624
ParseError(const char *file, int line, const char *function, const std::string &expression, const std::string &message) noexcept
Postcondition failed exception.
Definition: Exception.h:173
Postcondition(const char *file, int line, const char *function, const std::string &condition) noexcept
Precondition failed exception.
Definition: Exception.h:159
Precondition(const char *file, int line, const char *function, const std::string &condition) noexcept
UInt underflow exception.
Definition: Exception.h:228
SizeUnderflow(const char *file, int line, const char *function, Size size=0) noexcept
SqlOperation failed exception.
Definition: Exception.h:582
SqlOperationFailed(const char *file, int line, const char *function, const std::string &description) noexcept
Exception used if an error occurred while calibrating a dataset.
Definition: Exception.h:705
UnableToCalibrate(const char *file, int line, const char *function, const std::string &name, const std::string &message) noexcept
Unable to create file exception.
Definition: Exception.h:638
UnableToCreateFile(const char *file, int line, const char *function, const std::string &filename, const std::string &message="") noexcept
Exception used if an error occurred while fitting a model to a given dataset.
Definition: Exception.h:690
UnableToFit(const char *file, int line, const char *function, const std::string &name, const std::string &message) noexcept
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:134
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
int exception
(Used by various macros. Indicates a rough category of the exception being caught....
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)