PolyBoRi
PBoRiGenericError.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 //*****************************************************************************
14 //*****************************************************************************
15 
16 #ifndef polybori_error_PBoRiGenericError_h_
17 #define polybori_error_PBoRiGenericError_h_
18 
19 // load PolyBoRi settings
20 #include <polybori/pbori_defs.h>
21 
22 // Get runtime-definable error type
23 #include "PBoRiError.h"
24 
26 
34 template <CTypes::errornum_type ErrorCode>
36  public PBoRiError {
37 public:
40 
43 
44  enum { error_code = ErrorCode };
45 
47  PBoRiGenericError(): PBoRiError(error_code) {}
48 
49 };
50 
52 
53 #endif // of #ifndef PBoRiGenericError_h_
const char * errortext_type
Type used to verbose error information.
Definition: pbori_defs.h:243
#define END_NAMESPACE_PBORI
Finish project's namespace.
Definition: pbori_defs.h:77
#define BEGIN_NAMESPACE_PBORI
Start project's namespace.
Definition: pbori_defs.h:74
This template class is used for polybori's exception handling.
Definition: PBoRiGenericError.h:35
PBoRiGenericError()
Default constructor.
Definition: PBoRiGenericError.h:47
This class is used for polybori's exception handling.
Definition: PBoRiError.h:31
unsigned int errornum_type
Type used to store error codes.
Definition: pbori_defs.h:234
CTypes::errornum_type errornum_type
adopt global error code enumeration
Definition: PBoRiGenericError.h:39
CTypes::errortext_type errortext_type
adopt global error text type
Definition: PBoRiGenericError.h:42