Encapsulates an error to be raised by a mocked function.
More...
#include <Expectation.hpp>
|
| template<typename ... ExceptionArguments> |
| | ErrorRaiser (ExceptionArguments &&... arguments) |
| | Full initialization constructor.
|
| |
| void | doThrow () const |
| | This throws the exception that was stored.
|
| |
template<typename ExceptionType>
class qt_mocks::ErrorRaiser< ExceptionType >
Encapsulates an error to be raised by a mocked function.
- Template Parameters
-
| ExceptionType | The type of the exception to be raised. |
◆ ErrorRaiser()
template<typename ExceptionType>
template<typename ... ExceptionArguments>
Full initialization constructor.
- Template Parameters
-
| ExceptionArguments | The argument types used to construct the error. |
- Parameters
-
| arguments | A list of arguments used to construct the error object. |
◆ doThrow()
template<typename ExceptionType>
This throws the exception that was stored.
- Exceptions
-
| ExceptionType | The stored exception to be thrown. |