RxDock 0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
ModelError.h
1/***********************************************************************
2 * The rDock program was developed from 1998 - 2006 by the software team
3 * at RiboTargets (subsequently Vernalis (R&D) Ltd).
4 * In 2006, the software was licensed to the University of York for
5 * maintenance and distribution.
6 * In 2012, Vernalis and the University of York agreed to release the
7 * program as Open Source software.
8 * This version is licensed under GNU-LGPL version 3.0 with support from
9 * the University of Barcelona.
10 * http://rdock.sourceforge.net/
11 ***********************************************************************/
12
13// rxdock model exceptions (e.g. topological errors)
14
15#ifndef _RBTMODELERROR_H_
16#define _RBTMODELERROR_H_
17
18#include "rxdock/Error.h"
19
20namespace rxdock {
21
22const std::string IDS_MODEL_ERROR = "RBT_MODEL_ERROR";
23
24// Unspecified model error
25class ModelError : public Error {
26public:
27 ModelError(const std::string &strFile, int nLine,
28 const std::string &strMessage = "")
29 : Error(IDS_MODEL_ERROR, strFile, nLine, strMessage) {}
30 // Protected constructor to allow derived model error classes to set error
31 // name
32protected:
33 ModelError(const std::string &strName, const std::string &strFile, int nLine,
34 const std::string &strMessage = "")
35 : Error(strName, strFile, nLine, strMessage) {}
36};
37
38} // namespace rxdock
39
40#endif //_RBTMODELERROR_H_
Definition Error.h:59
Definition ModelError.h:25