MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / LoopControlException

Class LoopControlException

src/include/minja/minja.hpp:841–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839enum class LoopControlType { Break, Continue };
840
841class LoopControlException : public std::runtime_error {
842public:
843 LoopControlType control_type;
844 LoopControlException(const std::string & message, LoopControlType control_type) : std::runtime_error(message), control_type(control_type) {}
845 LoopControlException(LoopControlType control_type)
846 : std::runtime_error((control_type == LoopControlType::Continue ? "continue" : "break") + std::string(" outside of a loop")),
847 control_type(control_type) {}
848};
849
850struct LoopControlTemplateToken : public TemplateToken {
851 LoopControlType control_type;

Callers 2

renderMethod · 0.85
do_renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected