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_
polybori::CAuxTypes::errortext_type
const char * errortext_type
Type used to verbose error information.
Definition: pbori_defs.h:243
END_NAMESPACE_PBORI
#define END_NAMESPACE_PBORI
Finish project's namespace.
Definition: pbori_defs.h:77
BEGIN_NAMESPACE_PBORI
#define BEGIN_NAMESPACE_PBORI
Start project's namespace.
Definition: pbori_defs.h:74
polybori::PBoRiGenericError
This template class is used for polybori's exception handling.
Definition: PBoRiGenericError.h:35
polybori::PBoRiGenericError::PBoRiGenericError
PBoRiGenericError()
Default constructor.
Definition: PBoRiGenericError.h:47
pbori_defs.h
polybori::PBoRiError
This class is used for polybori's exception handling.
Definition: PBoRiError.h:31
polybori::CAuxTypes::errornum_type
unsigned int errornum_type
Type used to store error codes.
Definition: pbori_defs.h:234
polybori::PBoRiGenericError::errornum_type
CTypes::errornum_type errornum_type
adopt global error code enumeration
Definition: PBoRiGenericError.h:39
PBoRiError.h
polybori::PBoRiGenericError::errortext_type
CTypes::errortext_type errortext_type
adopt global error text type
Definition: PBoRiGenericError.h:42