QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
Loading...
Searching...
No Matches
Error Class Reference

Base error class. More...

#include <ql/errors.hpp>

Inherits exception.

Public Member Functions

 Error (const std::string &file, long line, const std::string &functionName, const std::string &message="")
const char * what () const noexcept override
 returns the error message.

Detailed Description

Base error class.

Examples
Gaussian1dModels.cpp.

Constructor & Destructor Documentation

◆ Error()

Error ( const std::string & file,
long line,
const std::string & functionName,
const std::string & message = "" )

The explicit use of this constructor is not advised. Use the QL_FAIL macro instead.