PBoRiGenericError.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_error_PBoRiGenericError_h_
#define polybori_error_PBoRiGenericError_h_
// load PolyBoRi settings
#include <polybori/pbori_defs.h>
// Get runtime-definable error type
#include "PBoRiError.h"
BEGIN_NAMESPACE_PBORI
template <CTypes::errornum_type ErrorCode>
class PBoRiGenericError:
public PBoRiError {
public:
typedef CTypes::errornum_type errornum_type;
typedef CTypes::errortext_type errortext_type;
enum { error_code = ErrorCode };
PBoRiGenericError(): PBoRiError(error_code) {}
};
END_NAMESPACE_PBORI
#endif // of #ifndef PBoRiGenericError_h_