Sauce-0.10.1
A C++ Dependency Injection Framework
|
A mixin to defer and throw pending exceptions. More...
#include <sauce/internal/pending_thrower.h>
Public Member Functions | |
template<typename Exception > | |
void | throwLater () |
Save an exception of the given type to throw when it is safe. More... | |
void | throwAnyPending () |
Throw and clear any saved exception. More... | |
PendingThrow | clear () |
Clear and return any saved exception. More... | |
A mixin to defer and throw pending exceptions.
|
inline |
|
inline |
Clear and return any saved exception.
returns NULL if no exception is pending.
|
inline |
Throw and clear any saved exception.
|
inline |
Save an exception of the given type to throw when it is safe.
The exception must have an accessible nullary constructor.
Any previously saved exception is dropped.