Logo
Reference manual - version qle_version
Public Member Functions | List of all members
ExceptionQuote Class Reference

A dummy quote class that throws an exception when value is called. More...

#include <qle/quotes/exceptionquote.hpp>

+ Inheritance diagram for ExceptionQuote:

Public Member Functions

 ExceptionQuote (std::string exception="you've hit an 'ExceptionQuote'")
 
Inspectors
Real quote () const
 
Quote interface
Real value () const override
 
bool isValid () const override
 

Observer interface

std::string exception_
 
void update () override
 

Detailed Description

A dummy quote class that throws an exception when value is called.