delphi_cb
 All Classes Namespaces Files Functions Variables Macros
interface_exceptions.h
Go to the documentation of this file.
1 
11 #ifndef INTERFACE_EXCEPTIONS_H_
12 #define INTERFACE_EXCEPTIONS_H_
13 
14 #include "exceptions.h"
15 
19 class CInexistentKey : public CException
20 {
21  public:
22  CInexistentKey(const string & strKey)
23  {
24  cerr << "KEY " << strKey << " DOES NOT EXIST" << endl;
25  }
26 };
27 
31 class CUnknownFile : public CException
32 {
33  public:
34  CUnknownFile(const string & strFileName)
35  {
36  cerr << "ERROR OCCURS WHILE READING " << strFileName << " FILE : FILE DOES NOT EXIST" << endl;
37  }
38 };
39 
43 class CMismatchSize : public CException
44 {
45  public:
46  CMismatchSize(const string & strKey)
47  {
48  cerr << "ERROR OCCURS WHILE CONVERTING THE VECTOR " << strKey << " TO MULTI-DIMENSIONAL ARRAY : THE SPECIFIED DIMESION DOES NOT MATCH" << endl;
49  }
50 };
51 
55 class CUnknownLine : public CWarning
56 {
57  public:
58  CUnknownLine(const string & strFileName, const string & strLine)
59  {
60  cerr << "UNKNOWN LINE \"" << strLine << "\" IN FILE " << strFileName << "(SKIP THIS LINE...)" << endl;
61  }
62 };
63 
67 class CNoBiomodel : public CWarning
68 {
69  public:
70  CNoBiomodel(const string & strBiomodel, const string & strSolver)
71  {
72  cerr << "UNDEFINED BIOMODEL OR SOLVER (USING DEFAULT: BIOMODEL=" << strBiomodel << ", SOLVER=" << strSolver << ")" << endl;
73  }
74 };
75 
76 
77 //class CResetArray : public CWarning
78 //{
79 // public:
80 // CResetArray(const string & strKey)
81 // {
82 // cerr << "THE ARRAY POINTED BY KEY \"" << strKey << "\" IS NOT NULL. \n"
83 // << "\n\tTHE MEMORY ALLOCATED BEFORE WILL BE RELEASED..." << endl;
84 // }
85 //};
86 
87 #endif // INTERFACE_EXCEPTIONS_H_
Definition: interface_exceptions.h:43
Definition: interface_exceptions.h:55
Definition: interface_exceptions.h:31
Definition: exceptions.h:41
Definition: exceptions.h:20
This file defines the format of warnings and exceptions.
Definition: interface_exceptions.h:19
Definition: interface_exceptions.h:67