CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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"
19  << e.what();
20  throw ex;
21  }
22 
23  void convertException::stringToEDM(std::string& s) {
25  e << "A std::string was thrown as an exception.\n"
26  << s;
27  throw e;
28  }
29 
30  void convertException::charPtrToEDM(char const* c) {
32  e << "A const char* was thrown as an exception.\n"
33  << c;
34  throw e;
35  }
36 
39  e << "An exception of unknown type was thrown.\n";
40  throw e;
41  }
42 }
virtual char const * what() const
Definition: Exception.cc:141
void stdToEDM(std::exception const &e)
void charPtrToEDM(char const *c)
void stringToEDM(std::string &s)