PolyBoRi
PBoRiError.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 //*****************************************************************************
14 //*****************************************************************************
15 
16 #ifndef polybori_error_PBoRiError_h_
17 #define polybori_error_PBoRiError_h_
18 
19 // load PolyBoRi settings
20 #include <polybori/pbori_defs.h>
21 #include <exception>
22 
24 
31 class PBoRiError:
32  public std::exception, public CTypes {
33 
34 public:
36  typedef CTypes::errornum_type errornum_type;
37 
40 
42  typedef PBoRiError self;
43 
45  PBoRiError(errornum_type err = CTypes::alright);
46 
48  PBoRiError(const self&);
49 
51  ~PBoRiError() throw();
52 
54  errornum_type code() const;
55 
57  errortext_type text() const;
58 
60  const char* what() const throw() { return text(); }
61 
62 protected:
64 };
65 
67 
68 #endif // of #ifndef PBoRiError_h_