Function handleUnexpectedInflightException

Synopsis

#include <include/internal/catch_run_context.h>

void handleUnexpectedInflightException(AssertionInfo const &info, std::string const &message, AssertionReaction &reaction) override

Description

No description yet.

Source

Lines 493-505 in include/internal/catch_run_context.cpp. Line 67 in include/internal/catch_run_context.h.

void RunContext::handleUnexpectedInflightException(
        AssertionInfo const& info,
        std::string const& message,
        AssertionReaction& reaction
) {
    m_lastAssertionInfo = info;
    AssertionResultData data( ResultWas::ThrewException, LazyExpression( false ) );
    data.message = message;
    AssertionResult assertionResult{ info, data };
    assertionEnded( assertionResult );
    populateReaction( reaction );
}





Add Discussion as Guest

Log in