1 #ifndef MSP_TEST_EXCEPTIONCHECK_H_
2 #define MSP_TEST_EXCEPTIONCHECK_H_
14 virtual ~ExceptionCheck() { }
16 virtual bool check(const std::exception &) const = 0;
17 virtual const std::type_info &get_type_info() const = 0;
21 class ExceptionTypeCheck: public ExceptionCheck
24 virtual bool check(const std::exception &e) const
25 { return dynamic_cast<const T *>(&e); }
27 virtual const std::type_info &get_type_info() const