Exceptions.h
Go to the documentation of this file.
1 #ifndef EXCEPTIONS_H
2 #define EXCEPTIONS_H
3 
4 #include <iostream>
5 #include <exception>
6 #include <string>
7 
9 
11  {
12  m_error=std::string("Parameter not defined: ")+name;
13  }
14 
15  virtual ~NoParameterFound() throw() {}
16 
17  virtual const char* what() const throw(){
18  return m_error.c_str();
19  }
20 
22 };
23 
24 #endif
static QCString name
Definition: declinfo.cpp:673
std::string string
Definition: nybbler.cc:12
virtual const char * what() const
Definition: Exceptions.h:17
virtual ~NoParameterFound()
Definition: Exceptions.h:15
std::string m_error
Definition: Exceptions.h:21
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
NoParameterFound(const std::string &name)
Definition: Exceptions.h:10