Class ExceptionMessageMatcher

Synopsis

#include <include/internal/catch_matchers_exception.hpp>

class ExceptionMessageMatcher : public MatcherBase<std::exception>

Description

No description yet.

Mentioned in

Inheritance

Ancestors: MatcherBase

Methods

ExceptionMessageMatcher
describe
match

Source

Lines 16-27 in include/internal/catch_matchers_exception.hpp.

class ExceptionMessageMatcher : public MatcherBase<std::exception> {
    std::string m_message;
public:

    ExceptionMessageMatcher(std::string const& message):
        m_message(message)
    {}

    bool match(std::exception const& ex) const override;

    std::string describe() const override;
};





Add Discussion as Guest

Log in