delphi_cb
 All Classes Namespaces Files Functions Variables Macros
delphi_exceptions.h
Go to the documentation of this file.
1 
11 #ifndef DELPHI_EXCEPTIONS_H_
12 #define DELPHI_EXCEPTIONS_H_
13 
14 #include "../interface/exceptions.h"
15 
20 {
21  public:
22  CInvalidEpsInMedium(const delphi_integer& iMedium)
23  {
24  cerr << "ERROR OCCURS DUE TO DIELECTRIC IN MEDIUM NUMBER " << iMedium << "\" < 1.0 " << endl;
25  cerr << "\t DELPHI IS NOT ABLE TO DEAL WITH EPS < 1.0. THEREFORE EXITING... " << endl;
26  }
27 };
28 
32 class CIsAnObjectType : public CException
33 {
34  public:
35  CIsAnObjectType(const string& strObject)
36  {
37  cerr << "OBJECT TYPES (SPHERE, CYLINDER, CONE AND BOX) ARE NO LONG SUPPORTED IN DELPHI C++" << endl;
38  cerr << "\t USE ProNOI TO GENERATE ATOMIC STYLE OBJECTS INSTEAD AND TRY AGAIN... " << endl;
39  }
40 };
41 
46 {
47  public:
48  CNoAtomsInMolecule(const delphi_integer& iObject)
49  {
50  cerr << "OBJECT " << iObject << " IS A MOLECULE WITH NO ATOMS (TOTAL ATOM NUMBER = 0)" << endl;
51  cerr << "\t CHECK THE INPUT FILES AND TRY AGAIN... " << endl;
52  }
53 };
54 
59 {
60  public:
61  CNoBndyAndDielec(shared_ptr<CTimer> pTimer)
62  {
63  cerr << "EXITING AS NO BOUNDARY ELEMENTS AND UNIFORM DIELECTRIC EXIT FLAG HAS BEEN SET" << endl;
64  pTimer->exit();
65  }
66 };
67 
72 {
73  public:
74  CBadAutoConvergence(const bool& bAutoConverge)
75  {
76  cerr << "EXITING AS AUTOC = " << bAutoConverge << " AND NO ITERATION NUMBER IS SPECIFIED" << endl;
77  cerr << "\t SET \"LINIT\" OR \"NONIT\" NONZERO IN THE PARAMTER FILE AND TRY AGAIN... " << endl;
78  }
79 };
80 
85 {
86  public:
87  CBadStatementAssignment(const string & strArgument, const string & strStatement)
88  {
89  cerr << "UNRECOGNIZED STATEMENT \"" << strStatement << " = " << strArgument << "\" ";
90  cerr << "(DEFAULT VALUE IS USED)" << endl;
91  }
92 };
93 
98 {
99  public:
100  COutOfRange_NONIT(int& iNonIterateNum)
101  {
102  if (30 > iNonIterateNum)
103  cerr << "REQUIRES AT LEAST 30 NONLINEAR ITERATIONS ";
104  else
105  cerr << "THE INPUT NONIT = " << iNonIterateNum << " IS OUT OF RANGE [0,10000] ";
106  iNonIterateNum = 30;
107  cerr << "(RESET NONIT = " << iNonIterateNum << " ITERATIONS)\n";
108  }
109 };
110 
115 {
116  public:
117  COutUnknownPHIFormat(const string& strFormat)
118  {
119  cerr << "UNKNOWN WRITE-OUT PHIMAP FILE FORMAT " << strFormat << " (DEFAULT PHIMAP FILE FORMAT IS USED)" << endl;
120  }
121 };
122 
127 {
128  public:
129  COutOBSOLETEPDBAFormat(const string& strFormat)
130  {
131  cerr << "WRITE-OUT OPTION " << strFormat << " NO LONGER SUPPORTED!" << " (DEFAULT SCRG FORMAT IS USED)" << endl;
132  }
133 };
134 
139 {
140  public:
141  CUnknownFunction(const string& strFuncName)
142  {
143  cerr << " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " << endl;
144  cerr << " The function specifier " << strFuncName << " is" << endl;
145  cerr << " not recognized. Therefore the function will not be processed " << endl;
146  cerr << " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " << endl;
147  }
148 };
149 
153 class CMinusDielec : public CWarning
154 {
155  public:
156  CMinusDielec(const delphi_real& fExDielec, const delphi_real& fInDielec)
157  {
158  cerr << "NEGATIVE DIELECTRIC CONSTANT(S): OUT = " << fExDielec << ", IN = " << fInDielec;
159  cerr << " (RESET TO BE THEIR ABSOLUTE VALUE(S))" << endl;
160  }
161 };
162 
167 {
168  public:
169  CToUnformattedFile(const string& strFile, const string& strASCI)
170  {
171  cerr << "MORE THAN 10 CHARACTERS OUT OF THE FIRST 80 CHARACTERS IN THE FILE " << strFile << " ARE NOT IN THE LIST OF ASCI \n"
172  << "<" << strASCI << "> (RESET THE PDB FILE FORMAT TO BE \"UNFORMATTED\")" << endl;
173  }
174 };
175 
180 {
181  public:
183  {
184  cerr << "PART OF SYSTEM OUTSIDE THE BOX!" << endl;
185  }
186 };
187 
192 {
193  public:
194  CReadWriteUnformatPdb(bool& bOutPdbFormat)
195  {
196  cerr << "CANNOT WRITE AN UNFORMATTED PDB FILE, WHILE READING IN AN UNFORMATTED PDB FILE (THE WRITE OPTION IS DISABLED)" << endl;
197 
198  bOutPdbFormat = false;
199  }
200 };
201 
206 {
207  public:
208  CReadWriteUnformatFrc(bool& bOutFrcFormat)
209  {
210  cerr << "CANNOT WRITE AN UNFORMATTED FRC FILE, WHILE READING IN AN UNFORMATTED PDB FILE (WRITE OPTION IS DISABLED)" << endl;
211 
212  bOutFrcFormat = false;
213  }
214 };
215 
220 {
221  public:
222  COutOfRange_CONFRA(int& iConvergeFract)
223  {
224  cerr << "THE INPUT CONFRA = " << iConvergeFract << " IS OUT OF RANGE [1,100] ";
225  iConvergeFract = 1;
226  cerr << "(RESET TO DEFAULT VALUE CONFRA = " << iConvergeFract << ")\n";
227  }
228 };
229 
234 {
235  public:
236  COutOfRange_PERFIL(delphi_real& fPercentageFill)
237  {
238  cerr << "THE INPUT PERFIL = " << fPercentageFill << " IS OUT OF RANGE [20.0,100.0] ";
239  fPercentageFill = 80.0;
240  cerr << "(RESET TO DEFAULT VALUE PERFIL = " << fPercentageFill << ")\n";
241  }
242 };
243 
248 {
249  public:
250  COutOfRange_CONINT(int& iIterateInterval)
251  {
252  cerr << "THE INPUT CONINT = " << iIterateInterval << " IS OUT OF RANGE [1,100] ";
253  iIterateInterval = 10;
254  cerr << "(RESET TO DEFAULT VALUE CONINT = " << iIterateInterval << ")\n";
255  }
256 };
257 
262 {
263  public:
264  COutOfRange_EXDI(delphi_real& fExDielec)
265  {
266  cerr << "THE INPUT EXDI = " << fExDielec << " IS OUT OF RANGE (0.0,1000.0] ";
267  fExDielec = 80.0;
268  cerr << "(RESET TO DEFAULT VALUE EXDI = " << fExDielec << ")\n";
269  }
270 };
271 
276 {
277  public:
278  CSphericalCrgIntelp(bool& bCrgInterplateType)
279  {
280  cerr << "SPHERICAL INTERPOLATION OF CHARGES TO GRIDS IS OBSOLETED " ;
281  cerr << "(USING LINEAR CUBIC INTERPOLATION INSTEAD) \n";
282  bCrgInterplateType = false;
283  }
284 };
285 
290 {
291  public:
292  COutOfRange_GRDCON(delphi_real& fGridConverge)
293  {
294  cerr << "THE INPUT GRDCON = " << fGridConverge << " IS OUT OF RANGE [0.0,100.0] ";
295  fGridConverge = 0.0;
296  cerr << "(RESET TO DEFAULT VALUE GRDCON = " << fGridConverge << ")\n";
297  }
298 };
299 
304 {
305  public:
306  COutOfRange_GSIZE(delphi_integer& iGrid)
307  {
308  cerr << "THE INPUT GSIZE = " << iGrid << " IS OUT OF RANGE [5,2000] ";
309  iGrid = 0;
310  cerr << "(RESET TO DEFAULT VALUE GSIZE = " << iGrid << ")\n";
311  }
312 };
313 
318 {
319  public:
320  COutOfRange_INDI(delphi_real& fInDielec)
321  {
322  cerr << "THE INPUT INDI = " << fInDielec << " IS OUT OF RANGE [5,2000] ";
323  fInDielec = 2.0;
324  cerr << "(RESET TO DEFAULT VALUE INDI = " << fInDielec << ")\n";
325  }
326 };
327 
332 {
333  public:
334  COutOfRange_SALT(delphi_real& fSalt)
335  {
336  cerr << "THE INPUT SALT = " << fSalt << " IS OUT OF RANGE [0.0,10.0] ";
337  fSalt = 0.0;
338  cerr << "(RESET TO DEFAULT VALUE SALT = " << fSalt << ")\n";
339  }
340 };
341 
346 {
347  public:
348  COutOfRange_IONRAD(delphi_real& fIonRadius)
349  {
350  cerr << "THE INPUT IONRAD = " << fIonRadius << " IS OUT OF RANGE [0.0,10.0] ";
351  fIonRadius = 2.0;
352  cerr << "(RESET TO DEFAULT VALUE IONRAD = " << fIonRadius << ")\n";
353  }
354 };
355 
360 {
361  public:
362  COutOfRange_LINIT(int& iLinIterateNum)
363  {
364  cerr << "THE INPUT LINIT = " << iLinIterateNum << " IS OUT OF RANGE (10,10000] ";
365  iLinIterateNum = 11;
366  cerr << "(RESET TO LINIT = " << iLinIterateNum << ")\n";
367  }
368 };
369 
374 {
375  public:
376  COutOfRange_MAXC(delphi_real& fMaxc)
377  {
378  cerr << "THE INPUT MAXC = " << fMaxc << " IS OUT OF RANGE (0.0,1.0) ";
379  fMaxc = 0.01;
380  cerr << "(RESET TO MAXC = " << fMaxc << ")\n";
381  }
382 };
383 
388 {
389  public:
390  COutOfRange_PRBRAD(delphi_real& fPrbrad)
391  {
392  cerr << "THE INPUT PRBRAD = " << fPrbrad << " IS OUT OF RANGE [0.0,10.0) ";
393  fPrbrad = 1.4;
394  cerr << "(RESET TO PRBRAD = " << fPrbrad << ")\n";
395  }
396 };
397 
402 {
403  public:
404  COutOfRange_PRBRAD2(delphi_real& fPrbrad)
405  {
406  cerr << "THE INPUT PRBRAD2 = " << fPrbrad << " IS OUT OF RANGE [0.0,10.0) ";
407  fPrbrad = -1.0;
408  cerr << "(RESET TO PRBRAD2 = " << fPrbrad << ")\n";
409  }
410 };
411 
416 {
417  public:
418  COutOfRange_RELFAC(delphi_real& fSpectralRadius)
419  {
420  cerr << "THE INPUT RELFAC = " << fSpectralRadius << " IS OUT OF RANGE (0.0,1.0) ";
421  fSpectralRadius = 0.9975;
422  cerr << "(RESET TO DEFAULT VALUE RELFAC = " << fSpectralRadius << ")\n";
423  }
424 };
425 
430 {
431  public:
432  COutOfRange_RELPAR(delphi_real& fRelaxParam)
433  {
434  cerr << "THE INPUT RELPAR = " << fRelaxParam << " IS OUT OF RANGE [0.0,2.0] ";
435  fRelaxParam = 1.0;
436  cerr << "(RESET TO DEFAULT VALUE RELPAR = " << fRelaxParam << ")\n";
437  }
438 };
439 
444 {
445  public:
446  COutOfRange_RMSC(delphi_real& fRmsc)
447  {
448  cerr << "THE INPUT RMSC = " << fRmsc << " IS OUT OF RANGE (0.0,1.0) ";
449  fRmsc = 0.0;
450  cerr << "(RESET TO DEFAULT VALUE RMSC = " << fRmsc << ")\n";
451  }
452 };
453 
458 {
459  public:
460  COutOfRange_SALT2(delphi_real& fSalt2)
461  {
462  cerr << "THE INPUT SALT2 = " << fSalt2 << " IS OUT OF RANGE [0.0,10.0] ";
463  fSalt2 = 0.0;
464  cerr << "(RESET TO DEFAULT VALUE SALT2 = " << fSalt2 << ")\n";
465  }
466 };
467 
472 {
473  public:
474  COutofRange_SCALE(delphi_real& fScale)
475  {
476  cerr << "THE INPUT SCALE = " << fScale << " IS OUT OF RANGE (0.0,40.0) ";
477  fScale = 2.0;
478  cerr << "(RESET TO DEFAULT VALUE SCALE = " << fScale << ")\n";
479  }
480 };
481 
486 {
487  public:
488  COutOfRange_VALPLUS1(int& iValPlus1)
489  {
490  cerr << "THE INPUT VAL+1 = " << iValPlus1 << " IS OUT OF RANGE [1,10] ";
491  iValPlus1 = 1;
492  cerr << "(RESET TO DEFAULT VALUE VAL+1 = " << iValPlus1 << ")\n";
493  }
494 };
495 
500 {
501  public:
502  COutOfRange_VALMINUS1(int& iValMinus1)
503  {
504  cerr << "THE INPUT VAL-1 = " << iValMinus1 << " IS OUT OF RANGE [1,10] ";
505  iValMinus1 = 1;
506  cerr << "(RESET TO DEFAULT VALUE VAL-1 = " << iValMinus1 << ")\n";
507  }
508 };
509 
514 {
515  public:
516  COutOfRange_VALPLUS2(int& iValPlus2)
517  {
518  cerr << "THE INPUT VAL+2 = " << iValPlus2 << " IS OUT OF RANGE [1,10] ";
519  iValPlus2 = 0;
520  cerr << "(RESET TO DEFAULT VALUE VAL+2 = " << iValPlus2 << ")\n";
521  }
522 };
523 
528 {
529  public:
530  COutOfRange_VALMINUS2(int& iValMinus2)
531  {
532  cerr << "THE INPUT VAL-2 = " << iValMinus2 << " IS OUT OF RANGE [1,10] ";
533  iValMinus2 = 0;
534  cerr << "(RESET TO DEFAULT VALUE VAL-2 = " << iValMinus2 << ")\n";
535  }
536 };
537 
542 {
543  public:
544  COutOfRange_ATPODS(delphi_real& fPotentialUpperBond)
545  {
546  cerr << "THE INPUT ATPODS = " << fPotentialUpperBond << " IS OUT OF RANGE (1.0,10.0) ";
547  fPotentialUpperBond = 0.5;
548  cerr << "(RESET TO DEFAULT VALUE ATPODS = " << fPotentialUpperBond << ")\n";
549  }
550 };
551 
556 {
557  public:
558  COutOfRange_TEMPER(delphi_real& fTemper)
559  {
560  cerr << "THE INPUT TEMPER = " << fTemper << " IS OUT OF RANGE [0.0,1000.0] ";
561  fTemper = 297.3342119;
562  cerr << "(RESET TO DEFAULT VALUE TEMPER = " << fTemper << ")\n";
563  }
564 };
565 
570 {
571  public:
572  COutOfRange_VDROP(delphi_real& fVdrop)
573  {
574  cerr << "THE INPUT VDROP (X,Y, OR Z) = " << fVdrop << " IS OUT OF RANGE [0.0,1000.0] ";
575  fVdrop = 0.0;
576  cerr << "(RESET TO DEFAULT VALUE VDROP = " << fVdrop << ")\n";
577  }
578 };
579 
584 {
585  public:
586  CEnmptyParameter_FUNCTION(const string& strFunction)
587  {
588  cerr << "FUNCTION \"" << strFunction << "\" HAS NO PARAMETER(S) (SKIP THIS FUNCTION)\n";
589  }
590 };
591 
596 {
597  public:
598  CUnknownParameter_FUNCTION(const string& strFunction, const string& strParameter)
599  {
600  cerr << "UNKNOWN PARAMTER \"" << strParameter << "\" IN FUNCTION \"" << strFunction << "\" ";
601  cerr << "(THIS PARAMETER IS SKIPPED)\n";
602  }
603 };
604 
609 {
610  public:
611  CObsoleteStatement(const string& strStatement)
612  {
613  cerr << "STATEMENT \"" << strStatement << "\" IS OBSOLETE ";
614  cerr << "(TAKING NO ACTION ON THIS STATEMENT)\n";
615  }
616 };
617 
622 {
623  public:
624  CObsoleteFunction(const string& strFunction)
625  {
626  cerr << "FUNCTION \"" << strFunction << "\" IS OBSOLETE ";
627  cerr << "(TAKING NO ACTION ON THIS FUNCTION)\n";
628  }
629 };
630 
635 {
636  public:
638  {
639  cerr << "WRITE(OFF): EVERYTHING DESCRIBED IN PREVIOUS WRITE FUNCTION IS TURNED OFF (NO OUTPUT FILE WILL BE PRODUCED)\n";
640  }
641 };
642 
643 #endif // DELPHI_EXCEPTIONS_H_
Definition: delphi_exceptions.h:317
Definition: delphi_exceptions.h:97
Definition: delphi_exceptions.h:373
Definition: delphi_exceptions.h:205
Definition: delphi_exceptions.h:84
Definition: delphi_exceptions.h:443
Definition: delphi_exceptions.h:583
Definition: delphi_exceptions.h:261
Definition: delphi_exceptions.h:527
Definition: delphi_exceptions.h:58
Definition: delphi_exceptions.h:359
Definition: delphi_exceptions.h:247
Definition: delphi_exceptions.h:219
Definition: delphi_exceptions.h:401
Definition: delphi_exceptions.h:191
Definition: delphi_exceptions.h:45
Definition: delphi_exceptions.h:471
Definition: delphi_exceptions.h:153
Definition: delphi_exceptions.h:429
Definition: delphi_exceptions.h:415
Definition: delphi_exceptions.h:555
Definition: exceptions.h:41
Definition: exceptions.h:20
Definition: delphi_exceptions.h:608
Definition: delphi_exceptions.h:595
Definition: delphi_exceptions.h:71
Definition: delphi_exceptions.h:541
Definition: delphi_exceptions.h:513
Definition: delphi_exceptions.h:457
Definition: delphi_exceptions.h:126
Definition: delphi_exceptions.h:19
Definition: delphi_exceptions.h:569
Definition: delphi_exceptions.h:289
Definition: delphi_exceptions.h:179
Definition: delphi_exceptions.h:331
Definition: delphi_exceptions.h:114
Definition: delphi_exceptions.h:32
Definition: delphi_exceptions.h:485
Definition: delphi_exceptions.h:233
Definition: delphi_exceptions.h:275
Definition: delphi_exceptions.h:303
Definition: delphi_exceptions.h:634
Definition: delphi_exceptions.h:621
Definition: delphi_exceptions.h:499
Definition: delphi_exceptions.h:138
Definition: delphi_exceptions.h:387
Definition: delphi_exceptions.h:166
Definition: delphi_exceptions.h:345