37 #include <OpenMS/OpenMSConfig.h>
91 public std::runtime_error
106 BaseException(const
char* file,
int line, const
char* function, const std::
string& name, const std::
string& message) noexcept;
120 const
char* getName() const noexcept;
123 int getLine() const noexcept;
126 const
char* getFile() const noexcept;
129 const
char* getFunction() const noexcept;
132 const
char* getMessage() const noexcept;
145 const
char* function_;
162 Precondition(
const char* file,
int line,
const char*
function,
const std::string& condition) noexcept;
176 Postcondition(
const char* file,
int line,
const char*
function,
const std::string& condition) noexcept;
191 MissingInformation(
const char* file,
int line,
const char*
function,
const std::string& error_message) noexcept;
267 FailedAPICall(
const char* file,
int line,
const char*
function,
const std::string& message) noexcept;
281 InvalidRange(
const char* file,
int line,
const char*
function) 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;
460 # pragma warning( push )
461 # pragma warning( disable : 4275 )
467 OutOfMemory(
const char* file,
int line,
const char*
function,
Size size = 0) noexcept;
470 # pragma warning( pop )
505 OutOfGrid(
const char* file,
int line,
const char*
function) noexcept;
519 FileNotFound(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
533 FileNotReadable(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
547 FileNotWritable(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
562 FileNameTooLong(
const char* file,
int line,
const char*
function,
const std::string& filename,
int max_length) noexcept;
576 IOException(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
590 SqlOperationFailed(
const char* file,
int line,
const char*
function,
const std::string& description) noexcept;
604 FileEmpty(
const char* file,
int line,
const char*
function,
const std::string& filename) noexcept;
618 IllegalPosition(
const char* file,
int line,
const char*
function,
float x,
float y,
float z) noexcept;
632 ParseError(
const char* file,
int line,
const char*
function,
const std::string& expression,
const std::string& message) noexcept;
646 UnableToCreateFile(
const char* file,
int line,
const char*
function,
const std::string& filename,
const std::string& message =
"") noexcept;
658 IllegalArgument(
const char* file,
int line,
const char*
function,
const std::string& error_message) noexcept;
672 ElementNotFound(
const char* file,
int line,
const char*
function,
const std::string& element) noexcept;
686 UnableToFit(
const char* file,
int line,
const char*
function,
const std::string& name,
const std::string& message) noexcept;
701 UnableToCalibrate(
const char* file,
int line,
const char*
function,
const std::string& name,
const std::string& message) noexcept;
715 DepletedIDPool(
const char* file,
int line,
const char*
function,
const std::string& name,
const std::string& message) noexcept;
Exception base class.
Definition: Exception.h:92
BaseException() noexcept
Default constructor.
Buffer overflow exception.
Definition: Exception.h:479
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:713
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:491
DivisionByZero(const char *file, int line, const char *function) noexcept
Element could not be found exception.
Definition: Exception.h:670
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:265
FailedAPICall(const char *file, int line, const char *function, const std::string &message) noexcept
File is empty.
Definition: Exception.h:602
FileEmpty(const char *file, int line, const char *function, const std::string &filename) noexcept
File not found exception.
Definition: Exception.h:517
FileNotFound(const char *file, int line, const char *function, const std::string &filename) noexcept
File not readable exception.
Definition: Exception.h:531
FileNotReadable(const char *file, int line, const char *function, const std::string &filename) noexcept
File not writable exception.
Definition: Exception.h:545
FileNotWritable(const char *file, int line, const char *function, const std::string &filename) noexcept
General IOException.
Definition: Exception.h:574
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:656
IllegalArgument(const char *file, int line, const char *function, const std::string &error_message) noexcept
Invalid 3-dimensional position exception.
Definition: Exception.h:616
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:248
IndexOverflow(const char *file, int line, const char *function, SignedSize index=0, Size size=0) noexcept
Int underflow exception.
Definition: Exception.h:210
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:279
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:503
OutOfGrid(const char *file, int line, const char *function) noexcept
Out of memory exception.
Definition: Exception.h:465
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:630
ParseError(const char *file, int line, const char *function, const std::string &expression, const std::string &message) noexcept
Postcondition failed exception.
Definition: Exception.h:174
Postcondition(const char *file, int line, const char *function, const std::string &condition) noexcept
Precondition failed exception.
Definition: Exception.h:160
Precondition(const char *file, int line, const char *function, const std::string &condition) noexcept
UInt underflow exception.
Definition: Exception.h:229
SizeUnderflow(const char *file, int line, const char *function, Size size=0) noexcept
SqlOperation failed exception.
Definition: Exception.h:588
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:699
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:644
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:684
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:47
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)