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

#include "/cvmfs/nova.opensciencegrid.org/externals/cetlib/v3_06_01/source/cetlib/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

Definition at line 27 of file exception_category_matcher.h.

Member Function Documentation

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

Definition at line 38 of file exception_category_matcher.h.

References category_, and string.

39  {
40  using namespace std::string_literals;
41  std::string desc{"is of category \""s + category_ + '"'};
42  return desc;
43  }
const XML_Char * s
Definition: expat.h:262
enum BeamMode string
bool cet::exception_category_matcher::match ( cet::exception const &  e) const
inlineoverride

Definition at line 32 of file exception_category_matcher.h.

References category_, and string.

33  {
34  return e.category() == category_;
35  }
Float_t e
Definition: plot.C:35

Member Data Documentation

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

Definition at line 46 of file exception_category_matcher.h.

Referenced by describe(), and match().


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