Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 06e1e0ab98898582c876a8be34ecb5e9 > files > 167

capisuite-0.4.5-5mdv2010.0.i586.rpm

<!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&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;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 &lt;iostream&gt;</span>
00021 <span class="preprocessor">#include &lt;string&gt;</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&amp; <a class="code" href="capiexception_8h.html#a0">operator&lt;&lt;</a>(ostream &amp;s, <a class="code" href="classApplicationError.html">ApplicationError</a> &amp;e)
00064 {
00065         s &lt;&lt; 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&lt;string&gt;, 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>