📄 wg__error_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>wg_error.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</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">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> </center><hr><h1>wg_error.h</h1><div class="fragment"><pre>00001 <span class="comment">// wg_error.h</span>00002 <span class="comment">//</span>00003 <span class="comment">// wGui error classes</span>00004 <span class="comment">//</span>00005 <span class="comment">//</span>00006 <span class="comment">// Copyright (c) 2002 Rob Wiskow</span>00007 <span class="comment">// rob-dev@boxedchaos.com</span>00008 <span class="comment">//</span>00009 <span class="comment">// This library is free software; you can redistribute it and/or</span>00010 <span class="comment">// modify it under the terms of the GNU Lesser General Public</span>00011 <span class="comment">// License as published by the Free Software Foundation; either</span>00012 <span class="comment">// version 2.1 of the License, or (at your option) any later version.</span>00013 <span class="comment">//</span>00014 <span class="comment">// This library is distributed in the hope that it will be useful,</span>00015 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>00016 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>00017 <span class="comment">// Lesser General Public License for more details.</span>00018 <span class="comment">//</span>00019 <span class="comment">// You should have received a copy of the GNU Lesser General Public</span>00020 <span class="comment">// License along with this library; if not, write to the Free Software</span>00021 <span class="comment">// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>00022 <span class="comment">//</span>00023 00024 00025 <span class="comment">// This is for all the exception classes that are used in wGui</span>00026 00027 <span class="preprocessor">#ifndef _WG_ERROR_H_</span>00028 <span class="preprocessor"></span><span class="preprocessor">#define _WG_ERROR_H_</span>00029 <span class="preprocessor"></span>00030 <span class="preprocessor">#include <exception></span>00031 <span class="preprocessor">#include <string></span>00032 00033 00034 <span class="keyword">namespace </span>wGui00035 {00036 <a name="l00038"></a><a class="code" href="classwGui_1_1Wg__Ex__Base.html">00038</a> <span class="keyword">class </span><a class="code" href="classwGui_1_1Wg__Ex__Base.html">Wg_Ex_Base</a> : <span class="keyword">public</span> std::exception00039 {00040 <span class="keyword">public</span>:<a name="l00042"></a><a class="code" href="classwGui_1_1Wg__Ex__Base.html#a0">00042</a> <a class="code" href="classwGui_1_1Wg__Ex__Base.html#a0">Wg_Ex_Base</a>(<span class="keyword">const</span> std::string& sWhat) : m_sWhat(sWhat) { }00043 <a name="l00045"></a><a class="code" href="classwGui_1_1Wg__Ex__Base.html#a1">00045</a> <span class="keyword">virtual</span> <a class="code" href="classwGui_1_1Wg__Ex__Base.html#a1">~Wg_Ex_Base</a>(<span class="keywordtype">void</span>) <span class="keywordflow">throw</span>() { }00046 <a name="l00048"></a><a class="code" href="classwGui_1_1Wg__Ex__Base.html#a2">00048</a> <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classwGui_1_1Wg__Ex__Base.html#a2">what</a>() <span class="keyword">const</span> <span class="keywordflow">throw</span>() { <span class="keywordflow">return</span> m_sWhat.c_str(); }00049 <a name="l00051"></a><a class="code" href="classwGui_1_1Wg__Ex__Base.html#a3">00051</a> <span class="keyword">virtual</span> <span class="keyword">const</span> std::string& <a class="code" href="classwGui_1_1Wg__Ex__Base.html#a3">std_what</a>() <span class="keyword">const</span> <span class="keywordflow">throw</span>() { <span class="keywordflow">return</span> m_sWhat; }00052 00053 <span class="keyword">private</span>:00054 std::string m_sWhat;00055 };00056 00057 <a name="l00059"></a><a class="code" href="classwGui_1_1Wg__Ex__SDL.html">00059</a> <span class="keyword">class </span><a class="code" href="classwGui_1_1Wg__Ex__SDL.html">Wg_Ex_SDL</a> : <span class="keyword">public</span> <a class="code" href="classwGui_1_1Wg__Ex__Base.html">Wg_Ex_Base</a>00060 {00061 <span class="keyword">public</span>:<a name="l00063"></a><a class="code" href="classwGui_1_1Wg__Ex__SDL.html#a0">00063</a> <a class="code" href="classwGui_1_1Wg__Ex__SDL.html#a0">Wg_Ex_SDL</a>(<span class="keyword">const</span> std::string& sWhat) : <a class="code" href="classwGui_1_1Wg__Ex__Base.html">Wg_Ex_Base</a>(sWhat) { }00064 };00065 00066 <a name="l00068"></a><a class="code" href="classwGui_1_1Wg__Ex__FreeType.html">00068</a> <span class="keyword">class </span><a class="code" href="classwGui_1_1Wg__Ex__FreeType.html">Wg_Ex_FreeType</a> : <span class="keyword">public</span> <a class="code" href="classwGui_1_1Wg__Ex__Base.html">Wg_Ex_Base</a>00069 {00070 <span class="keyword">public</span>:<a name="l00072"></a><a class="code" href="classwGui_1_1Wg__Ex__FreeType.html#a0">00072</a> <a class="code" href="classwGui_1_1Wg__Ex__FreeType.html#a0">Wg_Ex_FreeType</a>(<span class="keyword">const</span> std::string& sWhat) : <a class="code" href="classwGui_1_1Wg__Ex__Base.html">Wg_Ex_Base</a>(sWhat) { }00073 };00074 00075 <a name="l00077"></a><a class="code" href="classwGui_1_1Wg__Ex__App.html">00077</a> <span class="keyword">class </span><a class="code" href="classwGui_1_1Wg__Ex__App.html">Wg_Ex_App</a> : <span class="keyword">public</span> <a class="code" href="classwGui_1_1Wg__Ex__Base.html">Wg_Ex_Base</a>00078 {00079 <span class="keyword">public</span>:<a name="l00081"></a><a class="code" href="classwGui_1_1Wg__Ex__App.html#a0">00081</a> <a class="code" href="classwGui_1_1Wg__Ex__App.html#a0">Wg_Ex_App</a>(<span class="keyword">const</span> std::string& sWhat) : <a class="code" href="classwGui_1_1Wg__Ex__Base.html">Wg_Ex_Base</a>(sWhat) { }00082 };00083 00084 <a name="l00086"></a><a class="code" href="classwGui_1_1Wg__Ex__Range.html">00086</a> <span class="keyword">class </span><a class="code" href="classwGui_1_1Wg__Ex__Range.html">Wg_Ex_Range</a> : <span class="keyword">public</span> <a class="code" href="classwGui_1_1Wg__Ex__Base.html">Wg_Ex_Base</a>00087 {00088 <span class="keyword">public</span>:<a name="l00090"></a><a class="code" href="classwGui_1_1Wg__Ex__Range.html#a0">00090</a> <a class="code" href="classwGui_1_1Wg__Ex__Range.html#a0">Wg_Ex_Range</a>(<span class="keyword">const</span> std::string& sWhat) : <a class="code" href="classwGui_1_1Wg__Ex__Base.html">Wg_Ex_Base</a>(sWhat) { }00091 };00092 00093 }00094 00095 <span class="preprocessor">#endif // _WG_ERROR_H_</span>00096 <span class="preprocessor"></span></pre></div><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:22 2003 for wGui by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -