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
|
<!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>pcrepp::Pcre::exception class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3-rc3 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
<hr><h1>pcrepp::Pcre::exception Class Reference</h1><code>#include <<a class="el" href="pcre++_8h-source.html">pcre++.h</a>></code>
<p>
<a href="classpcrepp_1_1Pcre_1_1exception-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classpcrepp_1_1Pcre_1_1exception.html#a0">exception</a> (const std::string &msg)</td></tr>
<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classpcrepp_1_1Pcre_1_1exception.html#a1">exception</a> (int num)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Exception wrapper class.<p>
All errors which may occur inside the <a class="el" href="classpcrepp_1_1Pcre.html">Pcre</a> class will throw an exception of this type("Pcre::exception").<p>
You can catch such exceptions like this:<p>
<div class="fragment"><pre>
<span class="keywordflow">try</span> {
..
}
<span class="keywordflow">catch</span>(Pcre::exception &e) {
cout << <span class="stringliteral">"Pcre++ error: "</span> << e.what() << endl;
}
</pre></div>
<p>
<p>
Definition at line <a class="el" href="pcre++_8h-source.html#l00158">158</a> of file <a class="el" href="pcre++_8h-source.html">pcre++.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
<a name="a0" doxytag="pcrepp::Pcre::exception::exception"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> pcrepp::Pcre::exception::exception </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const std::string & </td>
<td class="mdname1" valign="top" nowrap> <em>msg</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="pcre++_8h-source.html#l00175">175</a> of file <a class="el" href="pcre++_8h-source.html">pcre++.h</a>. </td>
</tr>
</table>
<a name="a1" doxytag="pcrepp::Pcre::exception::exception"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> pcrepp::Pcre::exception::exception </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>num</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="pcre++_8h-source.html#l00176">176</a> of file <a class="el" href="pcre++_8h-source.html">pcre++.h</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="pcre++_8h-source.html">pcre++.h</a></ul>
<hr><address style="align: right;"><small>Generated on Wed Aug 25 01:38:04 2004 for PCRE++ 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.3-rc3 </small></address>
</body>
</html>
|