# Tag Archive: exceptions

## QuantLib: Error Macros

QuantLib defines a set of four error handling macros in the file errors.hpp. QL_FAIL QL_ASSERT QL_REQUIRE QL_ENSURE These macros are intended to simplify checking any conditions and throwing an error. All three macros will throw an object of class Error…