aboutsummaryrefslogtreecommitdiff
path: root/doc/oscl_html/oscl__exception_8h.html
blob: 08c018b60a7cee850c1d1ef033b2d283c79b1ed2 (plain)
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
<!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>oscl: oscl_exception.h File Reference</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.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>oscl_exception.h File Reference</h1>
<p>contains all the exception handling macros and classes  
<a href="#_details">More...</a></p>
<code>#include &quot;<a class="el" href="oscl__error_8h_source.html">oscl_error.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="oscl__error__imp_8h_source.html">oscl_error_imp.h</a>&quot;</code><br/>

<p><a href="oscl__exception_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclException.html">OsclException&lt; LeaveCode &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="oscl__exception_8h.html" title="contains all the exception handling macros and classes">oscl_exception.h</a> contains all the exception handling macros and classes  <a href="classOsclException.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclerror.html#gaaac1f86ec8f0d373138b4e95c44f9b42">OSCL_LEAVE</a>(_leave_status)&nbsp;&nbsp;&nbsp;OsclError::Leave(_leave_status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Use this macro to cause a Leave. It terminates the execution of the current active function.  <a href="group__osclerror.html#gaaac1f86ec8f0d373138b4e95c44f9b42"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclerror.html#gaf93293163f5b1baf3d3bbba81c79b165">OSCL_TRY</a>(_leave_status, _statements)&nbsp;&nbsp;&nbsp;_PV_TRAP(_leave_status,_statements)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This macro will be used to set up a try block.  <a href="group__osclerror.html#gaf93293163f5b1baf3d3bbba81c79b165"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclerror.html#ga58c0af7e501288a94ea7ef7a84d6077a">OSCL_TRY_NO_TLS</a>(__trapimp, _leave_status, _statements)&nbsp;&nbsp;&nbsp;_PV_TRAP_NO_TLS(__trapimp,_leave_status,_statements)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclerror.html#ga9b6bb44226cbe25af007dbb4e1d53043">OSCL_FIRST_CATCH_ANY</a>(_leave_status, _statements)&nbsp;&nbsp;&nbsp;if (_leave_status!=OsclErrNone) { _statements; }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This section defines the macros to be used in the catch block following the try block.  <a href="group__osclerror.html#ga9b6bb44226cbe25af007dbb4e1d53043"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclerror.html#gaaa207a12fea1606fdb85b9caf72fe898">OSCL_FIRST_CATCH</a>(_leave_status, _catch_value, _statements)&nbsp;&nbsp;&nbsp;if (_leave_status!=OsclErrNone &amp;&amp; _leave_status == _catch_value){_statements;}</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Use this macro to define a block of code that catches the first exception type thrown in the preceding try block.  <a href="group__osclerror.html#gaaa207a12fea1606fdb85b9caf72fe898"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclerror.html#ga294dbcad816f26addbaac6e10e495209">OSCL_CATCH</a>(_leave_status, _catch_value, _statements)&nbsp;&nbsp;&nbsp;else if (_leave_status!=OsclErrNone &amp;&amp; _leave_status == _catch_value){_statements;}</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Use this macro to define a block of code for catching additional exception types.  <a href="group__osclerror.html#ga294dbcad816f26addbaac6e10e495209"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclerror.html#gae23dc59dad125fa7feac32b75b903658">OSCL_CATCH_ANY</a>(_leave_status, _statements)&nbsp;&nbsp;&nbsp;else if (_leave_status!=OsclErrNone){ _statements;}</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Use this macro to call a function that will catch all remaining exception types.  <a href="group__osclerror.html#gae23dc59dad125fa7feac32b75b903658"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclerror.html#gac7ae114d28d520597dacc1fae5c3ea0d">OSCL_LAST_CATCH</a>(_leave_status)&nbsp;&nbsp;&nbsp;else if (_leave_status!=OsclErrNone){OSCL_LEAVE(_leave_status);}</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Use this macro if OSCL_CATCH_ANY has not been used. It will mark the end of the catch block.  <a href="group__osclerror.html#gac7ae114d28d520597dacc1fae5c3ea0d"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>contains all the exception handling macros and classes </p>
</div>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: CORE_9.004.1.1 </small>
</small></address>
</body>
</html>