RxDock 0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
DockingError.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 docking exceptions, errors during the docking run (e.g. early
14// convergence of the GA population)
15
16#ifndef _RBTDOCKINGERROR_H_
17#define _RBTDOCKINGERROR_H_
18
19#include "rxdock/Error.h"
20
21namespace rxdock {
22
23const std::string IDS_DOCKING_ERROR = "RBT_DOCKING_ERROR";
24
25// Unspecified model error
26class DockingError : public Error {
27public:
28 DockingError(const std::string &strFile, int nLine,
29 const std::string &strMessage = "")
30 : Error(IDS_DOCKING_ERROR, strFile, nLine, strMessage) {}
31 // Protected constructor to allow derived docking error classes
32 // to set error name
33protected:
34 DockingError(const std::string &strName, const std::string &strFile,
35 int nLine, const std::string &strMessage = "")
36 : Error(strName, strFile, nLine, strMessage) {}
37};
38
39} // namespace rxdock
40
41#endif //_RBTDOCKINGERROR_H_
Definition DockingError.h:26
Definition Error.h:59