A mixin to defer and throw pending exceptions.
More...
#include <sauce/internal/pending_thrower.h>
|
| 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.
|
| |
| PendingThrow | clear () |
| | Clear and return any saved exception. More...
|
| |
A mixin to defer and throw pending exceptions.
| PendingThrow sauce::internal::PendingThrower::clear |
( |
| ) |
|
|
inline |
Clear and return any saved exception.
returns NULL if no exception is pending.
59 PendingThrow toThrow = pending;
template<typename Exception >
| void sauce::internal::PendingThrower::throwLater |
( |
| ) |
|
|
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.
40 pending = &pendingThrowFactory<Exception>;
The documentation for this class was generated from the following file: