KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Exception.h
Go to the documentation of this file.
1 #ifndef EXCEPTION_H_
2 #define EXCEPTION_H_
3 
11 #include <string>
12 
13 namespace spear {
14 
15 class Exception
16 {
17  public:
18 
19  Exception(const std::string & msg) : _message(msg) {};
20 
21  Exception(const std::string & msg, int line);
22 
23  const std::string & getMessage() const { return _message; };
24 
25  private:
26 
27  std::string _message;
28 };
29 
30 } // end namespace spear
31 
32 #endif
const std::string & getMessage() const
Definition: Exception.h:23
Definition: Exception.h:15
Exception(const std::string &msg)
Definition: Exception.h:19