11 #include <OpenMS/OpenMSConfig.h>
64 public std::runtime_error
76 BaseException(const
char* file,
int line, const
char* function) noexcept;
79 BaseException(const
char* file,
int line, const
char* function, const std::
string& name, const std::
string& message) noexcept;
93 const
char* getName() const noexcept;
96 int getLine() const noexcept;
99 const
char* getFile() const noexcept;
102 const
char* getFunction() const noexcept;
105 const
char* getMessage() const noexcept;
118 const
char* function_;
135 Precondition(
const char* file,
int line,
const char*
function,
const std::string& condition) noexcept;
149 Postcondition(
const char* file,
int line,
const char*
function,
const std::string& condition) noexcept;
164 MissingInformation(
const char* file,
int line,
const char*
function,
const std::string& error_message) noexcept;
240 FailedAPICall(
const char* file,
int line,
const char*
function,
const std::string& message) noexcept;
254 InvalidRange(
const char* file,
int line,
const char*
function) noexcept;
255 InvalidRange(
const char* file,
int line,
const char*
function,
const std::string& message) noexcept;
273 InvalidSize(
const char* file,
int line,
const char*
function,
Size size = 0) noexcept;
289 OutOfRange(
const char* file,
int line,
const char*
function) noexcept;
305 InvalidValue(
const char* file,
int line,
const char*
function,
const std::string& message,
const std::string& value) noexcept;
317 InvalidParameter(
const char* file,
int line,
const char*
function,
const std::string& message) noexcept;
332 ConversionError(
const char* file,
int line,
const char*
function,
const std::string& error) noexcept;
363 NullPointer(
const char* file,
int line,
const char*
function) noexcept;
437 OutOfMemory(
const char* file,
int line,
const char*
function,
Size size = 0) noexcept;
473 OutOfGrid(
const char* file,
int line,
const char*
function) noexcept;
487 FileNotFound(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
501 FileNotReadable(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
515 FileNotWritable(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
530 FileNameTooLong(
const char* file,
int line,
const char*
function,
const std::string& filename,
int max_length) noexcept;
544 IOException(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
558 SqlOperationFailed(
const char* file,
int line,
const char*
function,
const std::string& description) noexcept;
572 FileEmpty(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
586 IllegalPosition(
const char* file,
int line,
const char*
function,
float x,
float y,
float z) noexcept;
600 ParseError(
const char* file,
int line,
const char*
function,
const std::string& expression,
const std::string& message) noexcept;
614 UnableToCreateFile(
const char* file,
int line,
const char*
function,
const std::string& filename,
const std::string& message =
"") noexcept;
626 IllegalArgument(
const char* file,
int line,
const char*
function,
const std::string& error_message) noexcept;
638 InternalToolError(
const char* file,
int line,
const char*
function,
const std::string& error_message) noexcept;
652 ElementNotFound(
const char* file,
int line,
const char*
function,
const std::string& element) noexcept;
666 UnableToFit(
const char* file,
int line,
const char*
function,
const std::string& name,
const std::string& message) noexcept;
681 UnableToCalibrate(
const char* file,
int line,
const char*
function,
const std::string& name,
const std::string& message) noexcept;
695 DepletedIDPool(
const char* file,
int line,
const char*
function,
const std::string& name,
const std::string& message) noexcept;
Exception base class.
Definition: Exception.h:65
BaseException() noexcept
Default constructor.
Buffer overflow exception.
Definition: Exception.h:447
BufferOverflow(const char *file, int line, const char *function) noexcept
Invalid conversion exception.
Definition: Exception.h:330
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:693
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:459
DivisionByZero(const char *file, int line, const char *function) noexcept
Element could not be found exception.
Definition: Exception.h:650
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:238
FailedAPICall(const char *file, int line, const char *function, const std::string &message) noexcept
File is empty.
Definition: Exception.h:570
FileEmpty(const char *file, int line, const char *function, const std::string &filename) noexcept
File not found exception.
Definition: Exception.h:485
FileNotFound(const char *file, int line, const char *function, const std::string &filename) noexcept
File not readable exception.
Definition: Exception.h:499
FileNotReadable(const char *file, int line, const char *function, const std::string &filename) noexcept
File not writable exception.
Definition: Exception.h:513
FileNotWritable(const char *file, int line, const char *function, const std::string &filename) noexcept
General IOException.
Definition: Exception.h:542
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:624
IllegalArgument(const char *file, int line, const char *function, const std::string &error_message) noexcept
Invalid 3-dimensional position exception.
Definition: Exception.h:584
IllegalPosition(const char *file, int line, const char *function, float x, float y, float z) noexcept
Illegal self operation exception.
Definition: Exception.h:346
IllegalSelfOperation(const char *file, int line, const char *function) noexcept
Illegal tree operation exception.
Definition: Exception.h:418
IllegalTreeOperation(const char *file, int line, const char *function) noexcept
Incompatible iterator exception.
Definition: Exception.h:390
IncompatibleIterators(const char *file, int line, const char *function) noexcept
Int overflow exception.
Definition: Exception.h:221
IndexOverflow(const char *file, int line, const char *function, SignedSize index=0, Size size=0) noexcept
Int underflow exception.
Definition: Exception.h:183
IndexUnderflow(const char *file, int line, const char *function, SignedSize index=0, Size size=0) noexcept
Invalid iterator exception.
Definition: Exception.h:375
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:315
InvalidParameter(const char *file, int line, const char *function, const std::string &message) noexcept
Invalid range exception.
Definition: Exception.h:252
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:271
InvalidSize(const char *file, int line, const char *function, Size size=0) noexcept
Invalid value exception.
Definition: Exception.h:303
InvalidValue(const char *file, int line, const char *function, const std::string &message, const std::string &value) noexcept
Not implemented exception.
Definition: Exception.h:404
NotImplemented(const char *file, int line, const char *function) noexcept
Null pointer argument is invalid exception.
Definition: Exception.h:361
NullPointer(const char *file, int line, const char *function) noexcept
Out of grid exception.
Definition: Exception.h:471
OutOfGrid(const char *file, int line, const char *function) noexcept
Out of memory exception.
Definition: Exception.h:435
OutOfMemory(const char *file, int line, const char *function, Size size=0) noexcept
Out of range exception.
Definition: Exception.h:287
OutOfRange(const char *file, int line, const char *function) noexcept
Parse Error exception.
Definition: Exception.h:598
ParseError(const char *file, int line, const char *function, const std::string &expression, const std::string &message) noexcept
Postcondition failed exception.
Definition: Exception.h:147
Postcondition(const char *file, int line, const char *function, const std::string &condition) noexcept
Precondition failed exception.
Definition: Exception.h:133
Precondition(const char *file, int line, const char *function, const std::string &condition) noexcept
UInt underflow exception.
Definition: Exception.h:202
SizeUnderflow(const char *file, int line, const char *function, Size size=0) noexcept
SqlOperation failed exception.
Definition: Exception.h:556
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:679
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:612
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:664
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:108
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
int exception
(Used by various macros. Indicates a rough category of the exception being caught....
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)