Lines Matching refs:SpecialException
45 struct SpecialException : std::exception { struct
46 SpecialException(int i_) : i(i_) {} in SpecialException() argument
60 throw SpecialException{i}; in throws()
69 class ExceptionMatcher : public Catch::MatcherBase<SpecialException> {
74 bool match(SpecialException const &se) const override { in match()
305 CHECK_THROWS_MATCHES(throws(1), SpecialException, ExceptionMatcher{1});
306 REQUIRE_THROWS_MATCHES(throws(2), SpecialException, ExceptionMatcher{2});
311 CHECK_THROWS_MATCHES(doesNotThrow(), SpecialException, ExceptionMatcher{1});
312 REQUIRE_THROWS_MATCHES(doesNotThrow(), SpecialException, ExceptionMatcher{1});
315 CHECK_THROWS_MATCHES(throwsAsInt(1), SpecialException, ExceptionMatcher{1});
316 REQUIRE_THROWS_MATCHES(throwsAsInt(1), SpecialException, ExceptionMatcher{1});
319 CHECK_THROWS_MATCHES(throws(3), SpecialException, ExceptionMatcher{1});
320 REQUIRE_THROWS_MATCHES(throws(4), SpecialException, ExceptionMatcher{1});