PolyBoRi
PBoRiGenericError.h
Go to the documentation of this file.
00001 // -*- c++ -*-
00002 //*****************************************************************************
00014 //*****************************************************************************
00015 
00016 #ifndef polybori_error_PBoRiGenericError_h_
00017 #define polybori_error_PBoRiGenericError_h_
00018 
00019 // load PolyBoRi settings
00020 #include <polybori/pbori_defs.h>
00021 
00022 // Get runtime-definable error type
00023 #include "PBoRiError.h"
00024 
00025 BEGIN_NAMESPACE_PBORI
00026 
00034 template <CTypes::errornum_type ErrorCode>
00035 class PBoRiGenericError: 
00036   public PBoRiError {
00037 public:
00039   typedef CTypes::errornum_type errornum_type;
00040 
00042   typedef CTypes::errortext_type errortext_type;
00043 
00044   enum { error_code = ErrorCode };
00045 
00047   PBoRiGenericError(): PBoRiError(error_code) {}
00048 
00049 };
00050 
00051 END_NAMESPACE_PBORI
00052 
00053 #endif // of #ifndef PBoRiGenericError_h_