CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
edm::HandleExceptionFactory Class Referenceabstract

#include "DataFormats/Common/interface/HandleExceptionFactory.h"

Inheritance diagram for edm::HandleExceptionFactory:
edm::FunctorHandleExceptionFactory< T >

Public Member Functions

 HandleExceptionFactory ()
 
virtual std::shared_ptr
< cms::Exception
make () const =0
 
virtual ~HandleExceptionFactory ()
 

Detailed Description

Description: Creates an cms::Exception for an edm::Handle

Usage: When a data product is requested which is not available, the edm::Handle<> will hold an edm::HandleExceptionFactory which is used to manufacture the exception which will be thrown if the Handle is dereferenced. Using a factory over having the cms::Exception already in the Handle is faster for the case where code calls Handle::isValid before dereferencing.

Definition at line 41 of file HandleExceptionFactory.h.

Constructor & Destructor Documentation

edm::HandleExceptionFactory::HandleExceptionFactory ( )

Definition at line 30 of file HandleExceptionFactory.cc.

31 {
32 }
edm::HandleExceptionFactory::~HandleExceptionFactory ( )
virtual

Definition at line 39 of file HandleExceptionFactory.cc.

40 {
41 }

Member Function Documentation

virtual std::shared_ptr<cms::Exception> edm::HandleExceptionFactory::make ( ) const
pure virtual