Luiza  v03-01
Exceptions.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef Exceptions_h
4 #define Exceptions_h 1
5 
6 #include <string>
7 #include <exception>
8 
9 namespace luiza {
10 
11 
13 
17  class Exception : public std::exception {
18 
19 
20  protected:
21  std::string message ;
22 
23  Exception(){ /*no_op*/ ; }
24 
25  public:
26  virtual ~Exception() throw() { /*no_op*/; }
27 
28  Exception( const std::string& text ){
29  message = "luiza::Exception: " + text ;
30  }
31 
32  virtual const char* what() const throw() { return message.c_str() ; }
33 
34  };
35 
36 
37 } // namespace
38 
39 #endif /* ifndef Exceptions_h */
Namespace for Luiza framework.
Definition: CCCollection.h:6
Define Exceptions class, useful for control of data processing.
Definition: Exceptions.h:17