CMS 3D CMS Logo

ConvertException.cc
Go to the documentation of this file.
3 
4 #include <iostream>
5 
6 namespace edm {
7 
9  std::cerr << "\nstd::bad_alloc exception" << std::endl;
11  e << "A std::bad_alloc exception was thrown.\n"
12  << "The job has probably exhausted the virtual memory available to the process.\n";
13  throw e;
14  }
15 
18  ex << "A std::exception was thrown.\n" << e.what();
19  throw ex;
20  }
21 
24  e << "A std::string was thrown as an exception.\n" << s;
25  throw e;
26  }
27 
28  void convertException::charPtrToEDM(char const* c) {
30  e << "A const char* was thrown as an exception.\n" << c;
31  throw e;
32  }
33 
36  e << "An exception of unknown type was thrown.\n";
37  throw e;
38  }
39 } // namespace edm
void stdToEDM(std::exception const &e)
void charPtrToEDM(char const *c)
void stringToEDM(std::string &s)
HLT enums.