PBoRiError.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_error_PBoRiError_h_
#define polybori_error_PBoRiError_h_
// load PolyBoRi settings
#include <polybori/pbori_defs.h>
#include <exception>
BEGIN_NAMESPACE_PBORI
class PBoRiError:
public std::exception, public CTypes {
public:
typedef CTypes::errornum_type errornum_type;
typedef CTypes::errortext_type errortext_type;
typedef PBoRiError self;
PBoRiError(errornum_type err = CTypes::alright);
PBoRiError(const self&);
~PBoRiError() throw();
errornum_type code() const;
errortext_type text() const;
const char* what() const throw() { return text(); }
protected:
errornum_type error;
};
END_NAMESPACE_PBORI
#endif // of #ifndef PBoRiError_h_