Public Member Functions | Private Attributes | List of all members
art::detail::ExceptionCollector Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v3_05_01/source/art/Framework/EventProcessor/detail/ExceptionCollector.h"

Public Member Functions

bool empty () const noexcept
 
void rethrow ()
 
template<typename F >
void call (F f)
 

Private Attributes

std::vector< std::exception_ptr > exceptions_ {}
 

Detailed Description

Definition at line 22 of file ExceptionCollector.h.

Member Function Documentation

template<typename F >
void art::detail::ExceptionCollector::call ( F  f)
inline

Definition at line 33 of file ExceptionCollector.h.

References exceptions_, and MakeMiniprodValidationCuts::f.

33  {
34  f();
35  }
36  catch (...) {
37  exceptions_.push_back(std::current_exception());
38  }
std::vector< std::exception_ptr > exceptions_
bool art::detail::ExceptionCollector::empty ( ) const
inlinenoexcept

Definition at line 25 of file ExceptionCollector.h.

References exceptions_, and rethrow().

26  {
27  return exceptions_.empty();
28  }
std::vector< std::exception_ptr > exceptions_
void art::detail::ExceptionCollector::rethrow ( )

Referenced by empty().

Member Data Documentation

std::vector<std::exception_ptr> art::detail::ExceptionCollector::exceptions_ {}
private

Definition at line 41 of file ExceptionCollector.h.

Referenced by call(), and empty().


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