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

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/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 26 of file ExceptionCollector.h.

Member Function Documentation

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

Definition at line 37 of file ExceptionCollector.h.

References exceptions_, and MakeMiniprodValidationCuts::f.

37  {
38  f();
39  }
40  catch (...) {
41  exceptions_.push_back(std::current_exception());
42  }
std::vector< std::exception_ptr > exceptions_
bool art::detail::ExceptionCollector::empty ( ) const
inlinenoexcept

Definition at line 29 of file ExceptionCollector.h.

References exceptions_, and rethrow().

30  {
31  return exceptions_.empty();
32  }
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 45 of file ExceptionCollector.h.

Referenced by call(), and empty().


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