CFL
Functions
cfl::NError Namespace Reference

Implementations of Error class for different types of exceptions. More...

Functions

Error range (const char *pWhere)
 
Error size (const char *pWhere)
 
Error sort (const char *pWhere)
 

Detailed Description

This namespace contains implementations of Error class adapted for different types of exceptions.

Function Documentation

Error cfl::NError::range ( const char *  pWhere)

This type of error indicates that some parameter is out of acceptable range. For example, negative volatility, invalid time.

Parameters
pWhereAdditional info on the error.
Returns
Generic class for exceptions in cfl library.
Error cfl::NError::size ( const char *  pWhere)

This type of error indicates that some vector or array does not have correct size.

Parameters
pWhereAdditional info on the error. For example, which vector has invalid size.
Returns
Generic class for exceptions in cfl library.
Error cfl::NError::sort ( const char *  pWhere)

This type of error usually indicates that an input vector (for example, a vector of event times) is not sorted, while it should be.

Parameters
pWhereAdditional info on the error.
Returns
Generic class for exceptions in cfl library.