QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Error Class Reference

Base error class. More...

#include <ql/errors.hpp>

+ Inheritance diagram for Error:
+ Collaboration diagram for Error:

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. More...
 

Private Attributes

ext::shared_ptr< std::string > message_
 

Detailed Description

Base error class.

Examples
Gaussian1dModels.cpp.

Definition at line 39 of file errors.hpp.

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.

Definition at line 93 of file errors.cpp.

Member Function Documentation

◆ what()

const char * what ( ) const
overridenoexcept

returns the error message.

Examples
Gaussian1dModels.cpp.

Definition at line 100 of file errors.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ message_

ext::shared_ptr<std::string> message_
private

Definition at line 52 of file errors.hpp.