CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/FWLite/src/ESHandle.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     FWLite
00004 // Class  :     ESHandle
00005 // 
00006 // Implementation:
00007 //     [Notes on implementation]
00008 //
00009 // Original Author:  
00010 //         Created:  Mon Dec 14 15:29:19 CST 2009
00011 // $Id: ESHandle.cc,v 1.2 2010/07/24 14:14:47 wmtan Exp $
00012 //
00013 
00014 // system include files
00015 
00016 // user include files
00017 #include "DataFormats/FWLite/interface/ESHandle.h"
00018 
00019 
00020 //
00021 // constants, enums and typedefs
00022 //
00023 
00024 static cms::Exception s_exc("ESHandleUnset", "The ESHandle is being accessed without ever being set by a Record");
00025 
00026 static void doNotDelete(cms::Exception*) {}
00027 
00028 namespace fwlite {
00029    boost::shared_ptr<cms::Exception> eshandle_not_set_exception() {
00030       return boost::shared_ptr<cms::Exception>(&s_exc, doNotDelete);
00031    }   
00032 }