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_