Free Electron
|
The DeepRecursion class An exception class which is thrown by DepthGuard. More...
#include <depthguard.h>
Inherits YAML::ParserException.
Public Member Functions | |
DeepRecursion (int depth, const Mark &mark_, const std::string &msg_) | |
int | depth () const |
Private Attributes | |
int | m_depth = 0 |
The DeepRecursion class An exception class which is thrown by DepthGuard.
Ideally it should be a member of DepthGuard. However, DepthGuard is a templated class which means that any catch points would then need to know the template parameters. It is simpler for clients to not have to know at the catch point what was the maximum depth.