RxDock 0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
LigandError.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 ligand exceptions, the model is correct, but the ligand is not
14// appropiate for this case. (e.g. doesn't comply with all the pharmacophore
15// constraints)
16
17#ifndef _RBTLIGANDERROR_H_
18#define _RBTLIGANDERROR_H_
19
20#include "rxdock/Error.h"
21
22namespace rxdock {
23
24const std::string IDS_LIGAND_ERROR = "RBT_LIGAND_ERROR";
25
26// Unspecified ligand error
27class LigandError : public Error {
28public:
29 LigandError(const std::string &strFile, int nLine,
30 const std::string &strMessage = "")
31 : Error(IDS_LIGAND_ERROR, strFile, nLine, strMessage) {}
32 // Protected constructor to allow derived ligand error classes to set error
33 // name
34protected:
35 LigandError(const std::string &strName, const std::string &strFile, int nLine,
36 const std::string &strMessage = "")
37 : Error(strName, strFile, nLine, strMessage) {}
38};
39
40} // namespace rxdock
41
42#endif //_RBTLIGANDERROR_H_
Definition Error.h:59
Definition LigandError.h:27