QuantLib
A free/open-source library for quantitative finance
Reference manual - version 1.20
Public Member Functions | List of all members
Error Class Reference

Base error class. More...

#include <ql/errors.hpp>

Inherits exception.

Inherited by PastFixingsOnly.

Public Member Functions

 Error (const std::string &file, long line, const std::string &functionName, const std::string &message="")
 
 ~Error () throw ()
 
const char * what () const throw ()
 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.

◆ ~Error()

~Error ( )
throw (
)

the automatically generated destructor would not have the throw specifier.