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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Crazy Eddies GUI System: CEGUIExceptions.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript">
function hasClass(ele,cls) {
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}
function removeClass(ele,cls) {
if (hasClass(ele,cls)) {
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
ele.className=ele.className.replace(reg,' ');
}
}
function toggleVisibility(linkObj) {
var base = linkObj.getAttribute('id');
var summary = document.getElementById(base + '-summary');
var content = document.getElementById(base + '-content');
var trigger = document.getElementById(base + '-trigger');
if ( hasClass(linkObj,'closed') ) {
summary.style.display = 'none';
content.style.display = 'block';
trigger.src = 'open.png';
removeClass(linkObj,'closed');
addClass(linkObj,'opened');
} else if ( hasClass(linkObj,'opened') ) {
summary.style.display = 'block';
content.style.display = 'none';
trigger.src = 'closed.png';
removeClass(linkObj,'opened');
addClass(linkObj,'closed');
}
return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Crazy Eddies GUI System <span id="projectnumber">0.7.6</span></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<div class="title">CEGUIExceptions.h</div> </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***********************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> filename: CEGUIExceptions.h</span>
<a name="l00003"></a>00003 <span class="comment"> created: 20/2/2004</span>
<a name="l00004"></a>00004 <span class="comment"> author: Paul D Turner, Frederico Jeronimo (fjeronimo)</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment"> purpose: Defines exceptions used within the system</span>
<a name="l00007"></a>00007 <span class="comment">*************************************************************************/</span>
<a name="l00008"></a>00008 <span class="comment">/***************************************************************************</span>
<a name="l00009"></a>00009 <span class="comment">* Copyright (C) 2004 - 2009 Paul D Turner & The CEGUI Development Team</span>
<a name="l00010"></a>00010 <span class="comment">*</span>
<a name="l00011"></a>00011 <span class="comment">* Permission is hereby granted, free of charge, to any person obtaining</span>
<a name="l00012"></a>00012 <span class="comment">* a copy of this software and associated documentation files (the</span>
<a name="l00013"></a>00013 <span class="comment">* "Software"), to deal in the Software without restriction, including</span>
<a name="l00014"></a>00014 <span class="comment">* without limitation the rights to use, copy, modify, merge, publish,</span>
<a name="l00015"></a>00015 <span class="comment">* distribute, sublicense, and/or sell copies of the Software, and to</span>
<a name="l00016"></a>00016 <span class="comment">* permit persons to whom the Software is furnished to do so, subject to</span>
<a name="l00017"></a>00017 <span class="comment">* the following conditions:</span>
<a name="l00018"></a>00018 <span class="comment">*</span>
<a name="l00019"></a>00019 <span class="comment">* The above copyright notice and this permission notice shall be</span>
<a name="l00020"></a>00020 <span class="comment">* included in all copies or substantial portions of the Software.</span>
<a name="l00021"></a>00021 <span class="comment">*</span>
<a name="l00022"></a>00022 <span class="comment">* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,</span>
<a name="l00023"></a>00023 <span class="comment">* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span>
<a name="l00024"></a>00024 <span class="comment">* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</span>
<a name="l00025"></a>00025 <span class="comment">* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR</span>
<a name="l00026"></a>00026 <span class="comment">* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,</span>
<a name="l00027"></a>00027 <span class="comment">* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR</span>
<a name="l00028"></a>00028 <span class="comment">* OTHER DEALINGS IN THE SOFTWARE.</span>
<a name="l00029"></a>00029 <span class="comment">***************************************************************************/</span>
<a name="l00030"></a>00030 <span class="preprocessor">#ifndef _CEGUIExceptions_h_</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUIExceptions_h_</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a>00033 <span class="preprocessor">#include "CEGUIBase.h"</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include "CEGUIString.h"</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include <exception></span>
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="comment">// Start of CEGUI namespace section</span>
<a name="l00038"></a>00038 <span class="keyword">namespace </span>CEGUI
<a name="l00039"></a>00039 {
<a name="l00041"></a><a class="code" href="classCEGUI_1_1Exception.html">00041</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a> : <span class="keyword">public</span> std::exception
<a name="l00042"></a>00042 {
<a name="l00043"></a>00043 <span class="keyword">public</span>:
<a name="l00045"></a>00045 <span class="keyword">virtual</span> ~<a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>(<span class="keywordtype">void</span>) <span class="keywordflow">throw</span>();
<a name="l00046"></a>00046
<a name="l00056"></a><a class="code" href="classCEGUI_1_1Exception.html#a5dd0b78999462f789879b02d9f886ce3">00056</a> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& getMessage(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00057"></a>00057 <span class="keyword"> </span>{ <span class="keywordflow">return</span> d_message; }
<a name="l00058"></a>00058
<a name="l00067"></a><a class="code" href="classCEGUI_1_1Exception.html#a1bdbd17f11d24915f3b75393e4cfd47e">00067</a> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& getName()<span class="keyword"> const</span>
<a name="l00068"></a>00068 <span class="keyword"> </span>{ <span class="keywordflow">return</span> d_name; }
<a name="l00069"></a>00069
<a name="l00079"></a><a class="code" href="classCEGUI_1_1Exception.html#ad49898b452b2f80c8857d38551ebda06">00079</a> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& getFileName(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00080"></a>00080 <span class="keyword"> </span>{ <span class="keywordflow">return</span> d_filename; }
<a name="l00081"></a>00081
<a name="l00089"></a><a class="code" href="classCEGUI_1_1Exception.html#aaab0c31da43b89a1f912dc42c24558bf">00089</a> <span class="keywordtype">int</span> getLine(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00090"></a>00090 <span class="keyword"> </span>{ <span class="keywordflow">return</span> d_line; }
<a name="l00091"></a>00091
<a name="l00092"></a>00092 <span class="comment">// override from std::exception.</span>
<a name="l00093"></a>00093 <span class="keyword">const</span> <span class="keywordtype">char</span>* what() <span class="keyword">const</span> throw();
<a name="l00094"></a>00094
<a name="l00095"></a>00095 protected:
<a name="l00116"></a>00116 <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>(const <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& message = "",
<a name="l00117"></a>00117 const <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& name = "CEGUI::<a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>",
<a name="l00118"></a>00118 const <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& filename = "",
<a name="l00119"></a>00119 <span class="keywordtype">int</span> line = 0);
<a name="l00120"></a>00120
<a name="l00122"></a><a class="code" href="classCEGUI_1_1Exception.html#a0eaa12938ed9e74f7f203f3c5f7094c3">00122</a> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> d_message;
<a name="l00124"></a><a class="code" href="classCEGUI_1_1Exception.html#a40b13d0be30903a5907680790ee03ccc">00124</a> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> d_filename;
<a name="l00126"></a><a class="code" href="classCEGUI_1_1Exception.html#a4b1ae2bbc5b948ad0b5efa9efad3cc10">00126</a> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> d_name;
<a name="l00128"></a><a class="code" href="classCEGUI_1_1Exception.html#a41b3fc2b1548f6c5a19a5854775b3d51">00128</a> <span class="keywordtype">int</span> d_line;
<a name="l00130"></a><a class="code" href="classCEGUI_1_1Exception.html#af7686455b4cbddbbc6dda0c271132060">00130</a> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> d_what;
<a name="l00131"></a>00131 };
<a name="l00132"></a>00132
<a name="l00133"></a>00133 <span class="comment">//----------------------------------------------------------------------------//</span>
<a name="l00134"></a>00134
<a name="l00136"></a><a class="code" href="classCEGUI_1_1GenericException.html">00136</a> class CEGUIEXPORT <a class="code" href="classCEGUI_1_1GenericException.html" title="Exception class used when none of the other classes are applicable.">GenericException</a> : public Exception
<a name="l00137"></a>00137 {
<a name="l00138"></a>00138 <span class="keyword">public</span>:
<a name="l00160"></a><a class="code" href="classCEGUI_1_1GenericException.html#a03204d45390cfd203b529b20754a347c">00160</a> <a class="code" href="classCEGUI_1_1GenericException.html" title="Exception class used when none of the other classes are applicable.">GenericException</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& message,
<a name="l00161"></a>00161 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& file = <span class="stringliteral">"unknown"</span>, <span class="keywordtype">int</span> line = 0) :
<a name="l00162"></a>00162 Exception(message, <span class="stringliteral">"CEGUI::GenericException"</span>, file, line)
<a name="l00163"></a>00163 {}
<a name="l00164"></a>00164 };
<a name="l00165"></a>00165
<a name="l00183"></a>00183 <span class="preprocessor">#define GenericException(message) \</span>
<a name="l00184"></a>00184 <span class="preprocessor"> GenericException(message, __FILE__, __LINE__)</span>
<a name="l00185"></a>00185 <span class="preprocessor"></span>
<a name="l00186"></a>00186 <span class="comment">//----------------------------------------------------------------------------//</span>
<a name="l00187"></a>00187
<a name="l00189"></a><a class="code" href="classCEGUI_1_1UnknownObjectException.html">00189</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1UnknownObjectException.html" title="Exception class used when a request was made for an unknown object.">UnknownObjectException</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>
<a name="l00190"></a>00190 {
<a name="l00191"></a>00191 <span class="keyword">public</span>:
<a name="l00213"></a><a class="code" href="classCEGUI_1_1UnknownObjectException.html#a79b90ba485d6f40a56696f004bf07ba3">00213</a> <a class="code" href="classCEGUI_1_1UnknownObjectException.html" title="Exception class used when a request was made for an unknown object.">UnknownObjectException</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& message,
<a name="l00214"></a>00214 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& file = <span class="stringliteral">"unknown"</span>, <span class="keywordtype">int</span> line = 0) :
<a name="l00215"></a>00215 <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>(message, <span class="stringliteral">"CEGUI::UnknownObjectException"</span>, file, line)
<a name="l00216"></a>00216 {}
<a name="l00217"></a>00217 };
<a name="l00218"></a>00218
<a name="l00236"></a>00236 <span class="preprocessor">#define UnknownObjectException(message) \</span>
<a name="l00237"></a>00237 <span class="preprocessor"> UnknownObjectException(message, __FILE__, __LINE__)</span>
<a name="l00238"></a>00238 <span class="preprocessor"></span>
<a name="l00239"></a>00239 <span class="comment">//----------------------------------------------------------------------------//</span>
<a name="l00240"></a>00240
<a name="l00242"></a><a class="code" href="classCEGUI_1_1InvalidRequestException.html">00242</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1InvalidRequestException.html" title="Exception class used when some impossible request was made of the system.">InvalidRequestException</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>
<a name="l00243"></a>00243 {
<a name="l00244"></a>00244 <span class="keyword">public</span>:
<a name="l00266"></a><a class="code" href="classCEGUI_1_1InvalidRequestException.html#aea080c913073a93ad1072dea13bbd61a">00266</a> <a class="code" href="classCEGUI_1_1InvalidRequestException.html" title="Exception class used when some impossible request was made of the system.">InvalidRequestException</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& message,
<a name="l00267"></a>00267 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& file = <span class="stringliteral">"unknown"</span>, <span class="keywordtype">int</span> line = 0) :
<a name="l00268"></a>00268 <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>(message, <span class="stringliteral">"CEGUI::InvalidRequestException"</span>, file, line)
<a name="l00269"></a>00269 {}
<a name="l00270"></a>00270 };
<a name="l00271"></a>00271
<a name="l00289"></a>00289 <span class="preprocessor">#define InvalidRequestException(message) \</span>
<a name="l00290"></a>00290 <span class="preprocessor"> InvalidRequestException(message, __FILE__, __LINE__)</span>
<a name="l00291"></a>00291 <span class="preprocessor"></span>
<a name="l00292"></a>00292 <span class="comment">//----------------------------------------------------------------------------//</span>
<a name="l00293"></a>00293
<a name="l00295"></a><a class="code" href="classCEGUI_1_1FileIOException.html">00295</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1FileIOException.html" title="Exception class used when a file handling problem occurs.">FileIOException</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>
<a name="l00296"></a>00296 {
<a name="l00297"></a>00297 <span class="keyword">public</span>:
<a name="l00319"></a><a class="code" href="classCEGUI_1_1FileIOException.html#a58784d2958cf779993931fe963ca8b9b">00319</a> <a class="code" href="classCEGUI_1_1FileIOException.html" title="Exception class used when a file handling problem occurs.">FileIOException</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& message,
<a name="l00320"></a>00320 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& file = <span class="stringliteral">"unknown"</span>, <span class="keywordtype">int</span> line = 0) :
<a name="l00321"></a>00321 <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>(message, <span class="stringliteral">"CEGUI::FileIOException"</span>, file, line)
<a name="l00322"></a>00322 {}
<a name="l00323"></a>00323 };
<a name="l00324"></a>00324
<a name="l00342"></a>00342 <span class="preprocessor">#define FileIOException(message) \</span>
<a name="l00343"></a>00343 <span class="preprocessor"> FileIOException(message, __FILE__, __LINE__)</span>
<a name="l00344"></a>00344 <span class="preprocessor"></span>
<a name="l00345"></a>00345 <span class="comment">//----------------------------------------------------------------------------//</span>
<a name="l00346"></a>00346
<a name="l00348"></a><a class="code" href="classCEGUI_1_1RendererException.html">00348</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1RendererException.html" title="Exception class used for problems in the rendering subsystem classes.">RendererException</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>
<a name="l00349"></a>00349 {
<a name="l00350"></a>00350 <span class="keyword">public</span>:
<a name="l00372"></a><a class="code" href="classCEGUI_1_1RendererException.html#ae51d327767317da8299f05c23533942f">00372</a> <a class="code" href="classCEGUI_1_1RendererException.html" title="Exception class used for problems in the rendering subsystem classes.">RendererException</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& message,
<a name="l00373"></a>00373 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& file = <span class="stringliteral">"unknown"</span>, <span class="keywordtype">int</span> line = 0) :
<a name="l00374"></a>00374 <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>(message, <span class="stringliteral">"CEGUI::RendererException"</span>, file, line)
<a name="l00375"></a>00375 {}
<a name="l00376"></a>00376 };
<a name="l00377"></a>00377
<a name="l00395"></a>00395 <span class="preprocessor">#define RendererException(message) \</span>
<a name="l00396"></a>00396 <span class="preprocessor"> RendererException(message, __FILE__, __LINE__)</span>
<a name="l00397"></a>00397 <span class="preprocessor"></span>
<a name="l00398"></a>00398 <span class="comment">//----------------------------------------------------------------------------//</span>
<a name="l00399"></a>00399
<a name="l00406"></a><a class="code" href="classCEGUI_1_1AlreadyExistsException.html">00406</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1AlreadyExistsException.html" title="Exception class used when an attempt is made create a named object of a particular type when an objec...">AlreadyExistsException</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>
<a name="l00407"></a>00407 {
<a name="l00408"></a>00408 <span class="keyword">public</span>:
<a name="l00430"></a><a class="code" href="classCEGUI_1_1AlreadyExistsException.html#a0be232e736663b3f3d5dd271c13b53c1">00430</a> <a class="code" href="classCEGUI_1_1AlreadyExistsException.html" title="Exception class used when an attempt is made create a named object of a particular type when an objec...">AlreadyExistsException</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& message,
<a name="l00431"></a>00431 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& file = <span class="stringliteral">"unknown"</span>, <span class="keywordtype">int</span> line = 0) :
<a name="l00432"></a>00432 <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>(message, <span class="stringliteral">"CEGUI::AlreadyExistsException"</span>, file, line)
<a name="l00433"></a>00433 {}
<a name="l00434"></a>00434 };
<a name="l00435"></a>00435
<a name="l00453"></a>00453 <span class="preprocessor">#define AlreadyExistsException(message) \</span>
<a name="l00454"></a>00454 <span class="preprocessor"> AlreadyExistsException(message, __FILE__, __LINE__)</span>
<a name="l00455"></a>00455 <span class="preprocessor"></span>
<a name="l00456"></a>00456 <span class="comment">//----------------------------------------------------------------------------//</span>
<a name="l00457"></a>00457
<a name="l00459"></a><a class="code" href="classCEGUI_1_1MemoryException.html">00459</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1MemoryException.html" title="Exception class used when a memory handling error is detected.">MemoryException</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>
<a name="l00460"></a>00460 {
<a name="l00461"></a>00461 <span class="keyword">public</span>:
<a name="l00483"></a><a class="code" href="classCEGUI_1_1MemoryException.html#a31fb1e31d32fc22424bd3dbda447bf11">00483</a> <a class="code" href="classCEGUI_1_1MemoryException.html" title="Exception class used when a memory handling error is detected.">MemoryException</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& message,
<a name="l00484"></a>00484 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& file = <span class="stringliteral">"unknown"</span>, <span class="keywordtype">int</span> line = 0) :
<a name="l00485"></a>00485 <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>(message, <span class="stringliteral">"CEGUI::MemoryException"</span>, file, line)
<a name="l00486"></a>00486 {}
<a name="l00487"></a>00487 };
<a name="l00488"></a>00488
<a name="l00506"></a>00506 <span class="preprocessor">#define MemoryException(message) \</span>
<a name="l00507"></a>00507 <span class="preprocessor"> MemoryException(message, __FILE__, __LINE__)</span>
<a name="l00508"></a>00508 <span class="preprocessor"></span>
<a name="l00509"></a>00509 <span class="comment">//----------------------------------------------------------------------------//</span>
<a name="l00510"></a>00510
<a name="l00512"></a><a class="code" href="classCEGUI_1_1NullObjectException.html">00512</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1NullObjectException.html" title="Exception class used when some required object or parameter is null.">NullObjectException</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>
<a name="l00513"></a>00513 {
<a name="l00514"></a>00514 <span class="keyword">public</span>:
<a name="l00536"></a><a class="code" href="classCEGUI_1_1NullObjectException.html#a29c262dacb99ff9bb72c97af6123e7f5">00536</a> <a class="code" href="classCEGUI_1_1NullObjectException.html" title="Exception class used when some required object or parameter is null.">NullObjectException</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& message,
<a name="l00537"></a>00537 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& file = <span class="stringliteral">"unknown"</span>, <span class="keywordtype">int</span> line = 0) :
<a name="l00538"></a>00538 <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>(message, <span class="stringliteral">"CEGUI::NullObjectException"</span>, file, line)
<a name="l00539"></a>00539 {}
<a name="l00540"></a>00540 };
<a name="l00541"></a>00541
<a name="l00559"></a>00559 <span class="preprocessor">#define NullObjectException(message) \</span>
<a name="l00560"></a>00560 <span class="preprocessor"> NullObjectException(message, __FILE__, __LINE__)</span>
<a name="l00561"></a>00561 <span class="preprocessor"></span>
<a name="l00562"></a>00562 <span class="comment">//----------------------------------------------------------------------------//</span>
<a name="l00563"></a>00563
<a name="l00569"></a><a class="code" href="classCEGUI_1_1ObjectInUseException.html">00569</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1ObjectInUseException.html" title="Exception class used when some attempt to delete, remove, or otherwise invalidate some object that is...">ObjectInUseException</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>
<a name="l00570"></a>00570 {
<a name="l00571"></a>00571 <span class="keyword">public</span>:
<a name="l00593"></a><a class="code" href="classCEGUI_1_1ObjectInUseException.html#a8a5ff42623f1c66f874e6dae8824d48f">00593</a> <a class="code" href="classCEGUI_1_1ObjectInUseException.html" title="Exception class used when some attempt to delete, remove, or otherwise invalidate some object that is...">ObjectInUseException</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& message,
<a name="l00594"></a>00594 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& file = <span class="stringliteral">"unknown"</span>, <span class="keywordtype">int</span> line = 0) :
<a name="l00595"></a>00595 <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>(message, <span class="stringliteral">"CEGUI::ObjectInUseException"</span>, file, line)
<a name="l00596"></a>00596 {}
<a name="l00597"></a>00597 };
<a name="l00598"></a>00598
<a name="l00616"></a>00616 <span class="preprocessor">#define ObjectInUseException(message) \</span>
<a name="l00617"></a>00617 <span class="preprocessor"> ObjectInUseException(message, __FILE__, __LINE__)</span>
<a name="l00618"></a>00618 <span class="preprocessor"></span>
<a name="l00619"></a>00619 <span class="comment">//----------------------------------------------------------------------------//</span>
<a name="l00620"></a>00620
<a name="l00622"></a><a class="code" href="classCEGUI_1_1ScriptException.html">00622</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1ScriptException.html" title="Exception class used for issues in scripting subsystem.">ScriptException</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>
<a name="l00623"></a>00623 {
<a name="l00624"></a>00624 <span class="keyword">public</span>:
<a name="l00646"></a><a class="code" href="classCEGUI_1_1ScriptException.html#a9784c8d82cf72fe8ce4f41132de3b4bc">00646</a> <a class="code" href="classCEGUI_1_1ScriptException.html" title="Exception class used for issues in scripting subsystem.">ScriptException</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& message,
<a name="l00647"></a>00647 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& file = <span class="stringliteral">"unknown"</span>, <span class="keywordtype">int</span> line = 0) :
<a name="l00648"></a>00648 <a class="code" href="classCEGUI_1_1Exception.html" title="Root exception class used within the GUI system.">Exception</a>(message, <span class="stringliteral">"CEGUI::ScriptException"</span>, file, line)
<a name="l00649"></a>00649 {}
<a name="l00650"></a>00650 };
<a name="l00651"></a>00651
<a name="l00669"></a>00669 <span class="preprocessor">#define ScriptException(message) \</span>
<a name="l00670"></a>00670 <span class="preprocessor"> ScriptException(message, __FILE__, __LINE__)</span>
<a name="l00671"></a>00671 <span class="preprocessor"></span>
<a name="l00672"></a>00672
<a name="l00673"></a>00673 <span class="comment">//----------------------------------------------------------------------------//</span>
<a name="l00674"></a>00674
<a name="l00675"></a>00675 } <span class="comment">// End of CEGUI namespace section</span>
<a name="l00676"></a>00676
<a name="l00677"></a>00677
<a name="l00678"></a>00678 <span class="preprocessor">#endif // end of guard _CEGUIExceptions_h_</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sun Jan 22 2012 16:07:39 for Crazy Eddies GUI System by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
|