00001 00002 #include "FWCore/Utilities/interface/EDMException.h" 00003 00004 namespace edm { 00005 namespace errors { 00006 struct FilledMap { 00007 FilledMap(); 00008 edm::Exception::CodeMap trans_; 00009 }; 00010 FilledMap::FilledMap() : trans_() { 00011 EDM_MAP_ENTRY_NONS(trans_, OtherCMS); 00012 EDM_MAP_ENTRY_NONS(trans_, StdException); 00013 EDM_MAP_ENTRY_NONS(trans_, Unknown); 00014 EDM_MAP_ENTRY_NONS(trans_, BadAlloc); 00015 EDM_MAP_ENTRY_NONS(trans_, BadExceptionType); 00016 EDM_MAP_ENTRY_NONS(trans_, ProductNotFound); 00017 EDM_MAP_ENTRY_NONS(trans_, DictionaryNotFound); 00018 EDM_MAP_ENTRY_NONS(trans_, NoProductSpecified); 00019 EDM_MAP_ENTRY_NONS(trans_, InsertFailure); 00020 EDM_MAP_ENTRY_NONS(trans_, Configuration); 00021 EDM_MAP_ENTRY_NONS(trans_, LogicError); 00022 EDM_MAP_ENTRY_NONS(trans_, UnimplementedFeature); 00023 EDM_MAP_ENTRY_NONS(trans_, InvalidReference); 00024 EDM_MAP_ENTRY_NONS(trans_, NullPointerError); 00025 EDM_MAP_ENTRY_NONS(trans_, EventTimeout); 00026 EDM_MAP_ENTRY_NONS(trans_, EventCorruption); 00027 EDM_MAP_ENTRY_NONS(trans_, ScheduleExecutionFailure); 00028 EDM_MAP_ENTRY_NONS(trans_, EventProcessorFailure); 00029 EDM_MAP_ENTRY_NONS(trans_, FileInPathError); 00030 EDM_MAP_ENTRY_NONS(trans_, FileOpenError); 00031 EDM_MAP_ENTRY_NONS(trans_, FileReadError); 00032 EDM_MAP_ENTRY_NONS(trans_, FatalRootError); 00033 EDM_MAP_ENTRY_NONS(trans_, MismatchedInputFiles); 00034 EDM_MAP_ENTRY_NONS(trans_, ProductDoesNotSupportViews); 00035 EDM_MAP_ENTRY_NONS(trans_, ProductDoesNotSupportPtr); 00036 EDM_MAP_ENTRY_NONS(trans_, NotFound); 00037 } 00038 } 00039 00040 void getCodeTable(edm::Exception::CodeMap*& setme) { 00041 static errors::FilledMap fm; 00042 setme = &fm.trans_; 00043 } 00044 }