| 18 | |
| 19 | |
| 20 | void |
| 21 | Protector::reportError( const ProtectorContext &context, |
| 22 | const Exception &error ) const |
| 23 | { |
| 24 | std::unique_ptr<Exception> actualError( error.clone() ); |
| 25 | actualError->setMessage( actualMessage( actualError->message(), context ) ); |
| 26 | context.m_result->addError( context.m_test, |
| 27 | actualError.release() ); |
| 28 | } |
| 29 | |
| 30 | |
| 31 |