Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

#define QL_ENSURE (   condition,
  message 
)
Value:
if (!(condition)) { \
    std::ostringstream _ql_msg_stream; \
    _ql_msg_stream << message; \
    throw QuantLib::Error(__FILE__,__LINE__, \
                          BOOST_CURRENT_FUNCTION,_ql_msg_stream.str()); \
 } else

throw an error if the given post-condition is not verified

Definition at line 98 of file errors.hpp.

Referenced by QuantLib::IncrementalStatistics::add(), QuantLib::EquityFXVolSurface::atmForwardVariance(), QuantLib::GenericRiskStatistics< S >::averageShortfall(), QuantLib::bachelierBlackFormula(), QuantLib::blackFormula(), QuantLib::blackFormulaImpliedStdDev(), QuantLib::blackFormulaImpliedStdDevApproximation(), QuantLib::BlackVolTermStructure::blackForwardVariance(), QuantLib::BlackVolTermStructure::blackForwardVol(), QuantLib::IMM::code(), QuantLib::ECB::code(), QuantLib::GenericRiskStatistics< S >::expectedShortfall(), QuantLib::QuantoVanillaOption::fetchResults(), QuantLib::QuantoForwardVanillaOption::fetchResults(), QuantLib::QuantoBarrierOption::fetchResults(), QuantLib::OneAssetOption::fetchResults(), QuantLib::MultiAssetOption::fetchResults(), QuantLib::ForwardVanillaOption::fetchResults(), QuantLib::EverestOption::fetchResults(), QuantLib::Bond::fetchResults(), QuantLib::Instrument::fetchResults(), QuantLib::CdsOption::fetchResults(), QuantLib::LocalVolSurface::localVolImpl(), QuantLib::ECB::nextCode(), QuantLib::Observable::notifyObservers(), QuantLib::GenericRiskStatistics< S >::shortfall(), QuantLib::TridiagonalOperator::solveFor(), QuantLib::SymmetricSchurDecomposition::SymmetricSchurDecomposition(), QuantLib::SimpleQuote::value(), QuantLib::LastFixingQuote::value(), QuantLib::DerivedQuote< UnaryFunction >::value(), QuantLib::CompositeQuote< BinaryFunction >::value(), QuantLib::RecoveryRateQuote::value(), and QuantLib::IncrementalStatistics::variance().


Generated by  Doxygen 1.6.0   Back to index