QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Classes and functions for error handling. More...
#include <ql/qldefines.hpp>
#include <ql/shared_ptr.hpp>
#include <boost/assert.hpp>
#include <boost/current_function.hpp>
#include <exception>
#include <sstream>
#include <string>
Go to the source code of this file.
Classes | |
class | Error |
Base error class. More... | |
Namespaces | |
namespace | QuantLib |
Macros | |
#define | QL_MULTILINE_FAILURE_BEGIN do { |
#define | QL_MULTILINE_FAILURE_END } while(false) |
#define | QL_MULTILINE_ASSERTION_BEGIN do { |
#define | QL_MULTILINE_ASSERTION_END } while(false) |
#define | QL_FAIL(message) |
throw an error (possibly with file and line information) More... | |
#define | QL_ASSERT(condition, message) |
throw an error if the given condition is not verified More... | |
#define | QL_REQUIRE(condition, message) |
throw an error if the given pre-condition is not verified More... | |
#define | QL_ENSURE(condition, message) |
throw an error if the given post-condition is not verified More... | |
Classes and functions for error handling.
Definition in file errors.hpp.
#define QL_MULTILINE_FAILURE_BEGIN do { |
Definition at line 57 of file errors.hpp.
#define QL_MULTILINE_FAILURE_END } while(false) |
Definition at line 69 of file errors.hpp.
#define QL_MULTILINE_ASSERTION_BEGIN do { |
Definition at line 73 of file errors.hpp.
#define QL_MULTILINE_ASSERTION_END } while(false) |
Definition at line 85 of file errors.hpp.
#define QL_FAIL | ( | message | ) |
throw an error (possibly with file and line information)
Definition at line 92 of file errors.hpp.
#define QL_ASSERT | ( | condition, | |
message | |||
) |
throw an error if the given condition is not verified
Definition at line 104 of file errors.hpp.
#define QL_REQUIRE | ( | condition, | |
message | |||
) |
throw an error if the given pre-condition is not verified
Definition at line 117 of file errors.hpp.
#define QL_ENSURE | ( | condition, | |
message | |||
) |
throw an error if the given post-condition is not verified
Definition at line 130 of file errors.hpp.