Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
// -*- C++ -*-
//
// Package:     FWLite
// Class  :     ESHandle
//
// Implementation:
//     [Notes on implementation]
//
// Original Author:
//         Created:  Mon Dec 14 15:29:19 CST 2009
//

// system include files

// user include files
#include "DataFormats/FWLite/interface/ESHandle.h"

//
// constants, enums and typedefs
//

static cms::Exception s_exc("ESHandleUnset", "The ESHandle is being accessed without ever being set by a Record");

static void doNotDelete(cms::Exception*) {}

namespace fwlite {
  std::shared_ptr<cms::Exception> eshandle_not_set_exception() {
    return std::shared_ptr<cms::Exception>(&s_exc, doNotDelete);
  }
}  // namespace fwlite