delphi_cb
 All Classes Namespaces Files Functions Variables Macros
io_exceptions.h
Go to the documentation of this file.
1 
11 #ifndef IO_EXCEPTIONS_H_
12 #define IO_EXCEPTIONS_H_
13 
14 #include "../interface/exceptions.h"
15 
19 class CUnknownIOFile : public CException
20 {
21  public:
22  CUnknownIOFile(const string & strFileName)
23  {
24  cerr << "ERROR OCCURS WHILE READING IO FILE " << strFileName << " : FILE DOES NOT EXIST" << endl;
25  }
26 };
27 
32 {
33  public:
34  CUnknownForceFileHeader(const string & strFile, const string & strHeader)
35  {
36  cerr << "UNKNOWN HEADER IN FILE " << strFile << " : " << strHeader << endl;
37  cerr << "\t VALID HEADER FOR SIZE FILE IS \'atom__res_radius\' OR \'atom__resnumbc_radius_\'" << endl;
38  cerr << "\t VALID HEADER FOR CHARGE FILE IS \'atom__res_radius\' OR \'atom__resnumbc_radius_\'" << endl;
39  }
40 };
41 
46 {
47  public:
48  CUnknownDelphiPdb(const string & strFile)
49  {
50  cerr << "THE FILE " << strFile << " IS NOT A DELPHI PDB FILE! " << endl;
51  cerr << "\t CHECK THE FILE TYPE! " << endl;
52  }
53 };
54 
59 {
60  public:
61  CUnknownUnformattedPdb(const string & strFile)
62  {
63  cerr << "ERROR OCCURS WHEN READING THE UNFORMATTED PDB FILE " << strFile << endl;
64  cerr << "\t CHECK THE FILE AND TRY AGAIN! " << endl;
65  }
66 };
67 
71 class CUnknownModPdb : public CException
72 {
73  public:
74  CUnknownModPdb(const string & strFile, const int & iFormatID)
75  {
76  cerr << "THE FORMAT ID " << iFormatID << " SPECIFIED IN THE MOD PDB FILE " << strFile << " IS NO LONG SUPPORTED." << endl;
77  cerr << "\t CURRENT SUPPORTED ID = 1, 4 FOR MOD PDB FILE" << endl;
78  }
79 };
80 
85 {
86  public:
87  CUnsupportedCRGDST(const string & strLine)
88  {
89  cerr << "THE INPUT PDB FILE CONTAINS A LINE \"" << strLine << "\" WITH KEYWORD \"crgdst\" WHICH IS NO LONGER SUPPORTED " << endl;
90  cerr << "\t PLEASE UPDATE THE PDB FILE AND TRY AGAIN..." << endl;
91  }
92 };
93 
98 {
99  public:
101  {
102  cerr << "# OF ATOMS = 0 AND # OF OBJECTS = 0" << endl;
103  cerr << "\t EXITING DUE T NON-EXISTENCE OF ATOM FILE NOR OBJECT DATA" << endl;
104  }
105 };
106 
110 class CUnknownRadius : public CWarning
111 {
112  public:
113  CUnknownRadius(const string & strLine)
114  {
115  cerr << "NO RADIUS RECORD FOUND FOR \"" << strLine << "\" " << endl;
116  //cerr << "\t PLEASE CHECK THE .siz FILE AND RETRY..." << endl;
117  }
118 };
119 
124 {
125  public:
126  CZeroHeavyAtomRadius(const string & strLine)
127  {
128  cerr << "RADIUS OF HEAVEY ATOM IN \"" << strLine << "\" IS SET TO ZERO"<< endl;
129  }
130 };
131 
135 class CUnknownCharge : public CWarning
136 {
137  public:
138  CUnknownCharge(const string & strLine)
139  {
140  cerr << "NO CHARGE RECORD FOUND FOR \"" << strLine << "\" (CHARGE IS SET = 0)" << endl;
141  }
142 };
143 
147 class CNonZeroNetCrg : public CWarning
148 {
149  public:
150  CNonZeroNetCrg(const string & strResidue, const string & strResidueNum, const delphi_real & fNetCharge)
151  {
152  cerr << "\"" << strResidue << strResidueNum << "\" HAS A NET CHARGE OF " << fNetCharge << endl;
153  }
154 };
155 
160 {
161  public:
162  CEmptyAtomsInFile(const string & strFile)
163  {
164  cerr << "EMPTY ATOMS FOR MIDPOINT DETERMINATION IN FILE " << strFile << " (ASSUMING ZERO OFFSETS)" << endl;
165  }
166 };
167 
172 {
173  public:
175  {
176  cerr << "IN PARAMETER FILE, USER SPECIFIES TO READ PDB FILE IN MODIFIED FORMAT "
177  << "(CHARGE AND SIZE ARE READ FROM THE PDB FILE AS WELL) \n";
178  }
179 };
180 
181 #endif // IO_EXCEPTIONS_H_
Definition: io_exceptions.h:84
Definition: io_exceptions.h:110
Definition: io_exceptions.h:45
Definition: io_exceptions.h:58
Definition: io_exceptions.h:71
Definition: io_exceptions.h:135
Definition: io_exceptions.h:31
Definition: io_exceptions.h:159
Definition: exceptions.h:41
Definition: exceptions.h:20
Definition: io_exceptions.h:123
Definition: io_exceptions.h:97
Definition: io_exceptions.h:19
Definition: io_exceptions.h:171
Definition: io_exceptions.h:147