1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>CapiSuite: applicationexception.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
<h1>applicationexception.h</h1><a href="applicationexception_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001
00008 <span class="comment">/***************************************************************************</span>
00009 <span class="comment"> * *</span>
00010 <span class="comment"> * This program is free software; you can redistribute it and/or modify *</span>
00011 <span class="comment"> * it under the terms of the GNU General Public License as published by *</span>
00012 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span>
00013 <span class="comment"> * (at your option) any later version. *</span>
00014 <span class="comment"> * *</span>
00015 <span class="comment"> ***************************************************************************/</span>
00016
00017 <span class="preprocessor">#ifndef APPLICATIONEXCEPTION_H</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define APPLICATIONEXCEPTION_H</span>
00019 <span class="preprocessor"></span>
00020 <span class="preprocessor">#include <iostream></span>
00021 <span class="preprocessor">#include <string></span>
00022
00023 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
00024
<a name="l00031"></a><a class="code" href="classApplicationError.html">00031</a> <span class="keyword">class </span><a class="code" href="classApplicationError.html">ApplicationError</a>
00032 {
00033 <span class="keyword">public</span>:
00034
<a name="l00040"></a><a class="code" href="classApplicationError.html#a0">00040</a> <a class="code" href="classApplicationError.html#a0">ApplicationError</a>(string errormsg,string function_name):
00041 errormsg(errormsg),function_name(function_name)
00042 {}
00043
<a name="l00050"></a><a class="code" href="classApplicationError.html#a1">00050</a> <span class="keyword">virtual</span> string <a class="code" href="classApplicationError.html#a1">message</a>()
00051 {
00052 <span class="keywordflow">return</span> (<span class="stringliteral">"ApplicationError: "</span>+<a class="code" href="classApplicationError.html#p0">errormsg</a>+<span class="stringliteral">" occured in "</span>+<a class="code" href="classApplicationError.html#p1">function_name</a>);
00053 }
00054
00055
00056 <span class="keyword">protected</span>:
<a name="l00057"></a><a class="code" href="classApplicationError.html#p0">00057</a> string <a class="code" href="classApplicationError.html#p0">errormsg</a>;
<a name="l00058"></a><a class="code" href="classApplicationError.html#p1">00058</a> string <a class="code" href="classApplicationError.html#p1">function_name</a>;
00059 };
00060
<a name="l00063"></a><a class="code" href="applicationexception_8h.html#a0">00063</a> <span class="keyword">inline</span> ostream& <a class="code" href="capiexception_8h.html#a0">operator<<</a>(ostream &s, <a class="code" href="classApplicationError.html">ApplicationError</a> &e)
00064 {
00065 s << e.<a class="code" href="classApplicationError.html#a1">message</a>();
00066 <span class="keywordflow">return</span> s;
00067 }
00068
00069 <span class="preprocessor">#endif</span>
00070 <span class="preprocessor"></span>
00071 <span class="comment">/* History</span>
00072 <span class="comment"></span>
00073 <span class="comment">$Log: applicationexception.h,v $</span>
00074 <span class="comment">Revision 1.1 2003/02/19 08:19:53 gernot</span>
00075 <span class="comment">Initial revision</span>
00076 <span class="comment"></span>
00077 <span class="comment">Revision 1.12 2003/01/19 16:50:27 ghillie</span>
00078 <span class="comment">- removed severity in exceptions. No FATAL-automatic-exit any more.</span>
00079 <span class="comment"> Removed many FATAL conditions, other ones are exiting now by themselves</span>
00080 <span class="comment"></span>
00081 <span class="comment">Revision 1.11 2002/12/13 09:57:10 ghillie</span>
00082 <span class="comment">- error message formatting done by exception classes now</span>
00083 <span class="comment"></span>
00084 <span class="comment">Revision 1.10 2002/12/10 15:03:04 ghillie</span>
00085 <span class="comment">- added missing include<string>, using namespace std</span>
00086 <span class="comment"></span>
00087 <span class="comment">Revision 1.9 2002/12/09 15:19:53 ghillie</span>
00088 <span class="comment">- removed severity WARNING</span>
00089 <span class="comment">- removed printing of error message in ERROR severity</span>
00090 <span class="comment"></span>
00091 <span class="comment">Revision 1.8 2002/11/29 10:20:44 ghillie</span>
00092 <span class="comment">- updated docs, use doxygen format now</span>
00093 <span class="comment"></span>
00094 <span class="comment">Revision 1.7 2002/11/27 15:54:02 ghillie</span>
00095 <span class="comment">updated docu for doxygen</span>
00096 <span class="comment"></span>
00097 <span class="comment">Revision 1.6 2002/11/25 21:00:53 ghillie</span>
00098 <span class="comment">- improved documentation, now doxygen-readabl</span>
00099 <span class="comment"></span>
00100 <span class="comment">Revision 1.5 2002/11/18 14:21:07 ghillie</span>
00101 <span class="comment">- moved global severity_t to ApplicationError::severity_t</span>
00102 <span class="comment">- added throw() declarations to header files</span>
00103 <span class="comment"></span>
00104 <span class="comment">Revision 1.4 2002/11/17 14:34:17 ghillie</span>
00105 <span class="comment">small change in header description</span>
00106 <span class="comment"></span>
00107 <span class="comment">Revision 1.3 2002/11/13 08:34:54 ghillie</span>
00108 <span class="comment">moved history to the bottom</span>
00109 <span class="comment"></span>
00110 <span class="comment">Revision 1.2 2002/10/27 12:47:20 ghillie</span>
00111 <span class="comment">- added multithread support for python</span>
00112 <span class="comment">- changed callcontrol reference to stay in the python namespace</span>
00113 <span class="comment">- changed ApplicationError to support differen severity</span>
00114 <span class="comment"></span>
00115 <span class="comment">Revision 1.1 2002/10/25 13:29:38 ghillie</span>
00116 <span class="comment">grouped files into subdirectories</span>
00117 <span class="comment"></span>
00118 <span class="comment">Revision 1.1 2002/10/24 09:58:12 ghillie</span>
00119 <span class="comment">definition of application exceptions will stay here</span>
00120 <span class="comment"></span>
00121 <span class="comment">*/</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Sun Nov 28 14:37:44 2004 for CapiSuite by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|