Public Member Functions | Private Attributes | List of all members
cet::exception_category_matcher Class Reference

#include <exception_category_matcher.h>

Inheritance diagram for cet::exception_category_matcher:

Public Member Functions

 exception_category_matcher (std::string category)
 
bool match (cet::exception const &e) const override
 
std::string describe () const override
 

Private Attributes

std::string category_
 

Detailed Description

Definition at line 24 of file exception_category_matcher.h.

Constructor & Destructor Documentation

cet::exception_category_matcher::exception_category_matcher ( std::string  category)
inlineexplicit

Member Function Documentation

std::string cet::exception_category_matcher::describe ( ) const
inlineoverride

Definition at line 38 of file exception_category_matcher.h.

39  {
40  using namespace std::string_literals;
41  std::string desc{"is of category \""s + category_ + '"'};
42  return desc;
43  }
std::string string
Definition: nybbler.cc:12
static QCString * s
Definition: config.cpp:1042
bool cet::exception_category_matcher::match ( cet::exception const &  e) const
inlineoverride

Definition at line 32 of file exception_category_matcher.h.

33  {
34  return e.category() == category_;
35  }
const double e

Member Data Documentation

std::string cet::exception_category_matcher::category_
private

Definition at line 46 of file exception_category_matcher.h.


The documentation for this class was generated from the following file: