CFL
Error.hpp
Go to the documentation of this file.
1 //Copyright (c) Dmitry Kramkov, 2000-2006. All rights reserved.
2 
3 #ifndef __cflError_hpp__
4 #define __cflError_hpp__
5 
6 #include "cfl/Macros.hpp"
7 #include <exception>
8 #include <string>
9 
20 namespace cfl
21 {
33 
35 
38  class Error: public std::exception
39  {
40  public:
45  Error (const char * pWhere);
46 
50  ~Error() throw() {};
51 
56  const char * what() const throw();
57 
58  private:
59  std::string m_sErr;
60  };
61 
63 
67  namespace NError
68  {
75  Error range(const char * pWhere);
76 
83  Error sort(const char * pWhere);
84 
92  Error size(const char * pWhere);
93  }
95 }
96 
97 #include "cfl/Inline/iError.hpp"
98 #endif //__cflError_hpp__
Exception class for cfl library.
Definition: Error.hpp:38
Error sort(const char *pWhere)
const char * what() const
Error size(const char *pWhere)
Error range(const char *pWhere)
Error(const char *pWhere)
basic_string< char > string
Macros and constants for cfl library.
Main namespace for cfl library.
Definition: Approx.hpp:22
~Error()
Definition: Error.hpp:50
STL class.