CError Class Reference
#include <cerror.h>
List of all members.
Detailed Description
CError class thrown when errors occur in chemcpp
- Author:
- Dr Jean-Luc Perret (luc@kuicr.kyoto-u.ac.jp), Kyoto University, Japan
- Version:
- 0.3
- Date:
- 17 Jan 2004
CLASS NAME: CError
FOR: SNSF SPONSORED PROJECT
PURPOSE: implements error message thrown by the classes in the chemcpp project.
When an error occurs an instance of this class is created and thrown. The class has two attributes: a type (integer why) and a comment (string comment). These two attributes can be retrieved using the getType() and getComment() functions. An error message corresponding to the error can also be printed on cerr using the describe() function.
The following error types are defined:
- BADFILE 1
- MISSINGDESCRIPTOR 2
- ATOMALREADYEXISTS 3
- NOTENOUGHATOMSINMOLECULE 4
- FILENOTFOUND 5
- ERRORNA 6
- UNKNOWNDATATYPE 7
- ERRORATOMNOTFOUND 8
- VALUENOTALLOWED 9
- NOTIMPLEMENTED 10
- NOTFOUND 11
- COULDNOTOPENFILE 12
- DUPLICATEENTRIES 13
- DEPRECATED 14
- THREADCREATIONERROR 15
- EOFERROR 16
- MISSINGDATA 17
- NOTCALCULATED 18
- BADVALUE 19
- BONDALREADYEXISTS 20
- IOERROR 21
- NOSTRUCTURE 22
- ATOMNOTFOUND 23
- SSSRNOTDETECTED 24
- MISSINGRING 25
- ATOMNOTINRING 26
- ALLNEIGHBOURSVISITED 27
- BONDNOTFOUND 28
- MOLECULENOTFOUND 29
- Examples:
-
cerror_example.cpp.
Constructor & Destructor Documentation
CError::CError |
( |
int |
anError, |
|
|
string |
aComment |
|
) |
|
|
Member Function Documentation
void CError::describe |
( |
|
) |
|
|
string CError::getComment |
( |
|
) |
[inline] |
|
|
returns the comment associated with the error. |
int CError::getType |
( |
|
) |
[inline] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Wed Nov 28 12:12:51 2007 for ChemCpp by
1.4.6