Example #1
0
    ResultBuilder::~ResultBuilder() {
#if defined(CATCH_CONFIG_FAST_COMPILE)
        if ( m_guardException ) {
            m_stream().oss << "Exception translation was disabled by CATCH_CONFIG_FAST_COMPILE";
            captureResult( ResultWas::ThrewException );
            getCurrentContext().getResultCapture()->exceptionEarlyReported();
        }
#endif
    }
 void ResultBuilder::useActiveException( ResultDisposition::Flags resultDisposition ) {
     m_assertionInfo.resultDisposition = resultDisposition;
     m_stream.oss << Catch::translateActiveException();
     captureResult( ResultWas::ThrewException );
 }