Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
LocalSpecExceptionHandlerCollection.h
Go to the documentation of this file.
1#pragma once
2
3#include <Specs/API.h>
4
5#include <deque>
6
7namespace SpecsCpp {
8
10 std::deque<ILocalSpecExceptionHandler*> _handlers;
11
12 public:
14 _handlers.push_front(handler);
15 }
16
18 for (const auto& handler : _handlers) fn->invoke(handler);
19 }
20 };
21}
void foreach_exception_handler(ForEachExceptionHandlerFn *fn) const override
void register_exception_handler(ILocalSpecExceptionHandler *handler) override
Definition API.h:3
IFunctionPointer< void(ILocalSpecExceptionHandler *)> ForEachExceptionHandlerFn
Definition API.h:394