File: classmysqlpp_1_1ConnectionFailed.html

package info (click to toggle)
mysql%2B%2B 3.2.5-2.3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,356 kB
  • sloc: cpp: 35,788; sh: 3,693; perl: 789; makefile: 728
file content (237 lines) | stat: -rwxr-xr-x 17,333 bytes parent folder | download | duplicates (3)
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
<!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>
  <title>MySQL++ Reference Manual</title>
  <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  <meta name="generator" content="Doxygen 1.8.15"/>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <title>MySQL++: mysqlpp::ConnectionFailed Class Reference</title>
  <link href="tabs.css" rel="stylesheet" type="text/css"/>
  <link href="doxygen.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="jquery.js"></script>
  <script type="text/javascript" src="dynsections.js"></script>
  <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
  <link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
  <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
    <div id="titlearea">
    <table cellspacing="0" cellpadding="0">
     <tbody>
     <tr style="height: 56px;">
      <td id="projectalign" style="padding-left: 0.5em;">
       <div id="projectname">MySQL++
       &#160;<span id="projectnumber">3.2.5</span>
       </div>
      </td>
     </tr>
     </tbody>
    </table>
    </div>
    <!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>mysqlpp</b></li><li class="navelem"><a class="el" href="classmysqlpp_1_1ConnectionFailed.html">ConnectionFailed</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classmysqlpp_1_1ConnectionFailed-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">mysqlpp::ConnectionFailed Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classmysqlpp_1_1Exception.html" title="Base class for all MySQL++ custom exceptions.">Exception</a> thrown when there is a problem related to the database server connection.  
 <a href="classmysqlpp_1_1ConnectionFailed.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="exceptions_8h_source.html">exceptions.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for mysqlpp::ConnectionFailed:</div>
<div class="dyncontent">
<div class="center"><img src="classmysqlpp_1_1ConnectionFailed__inherit__graph.png" border="0" usemap="#mysqlpp_1_1ConnectionFailed_inherit__map" alt="Inheritance graph"/></div>
<map name="mysqlpp_1_1ConnectionFailed_inherit__map" id="mysqlpp_1_1ConnectionFailed_inherit__map">
<area shape="rect"  title="Exception thrown when there is a problem related to the database server connection." alt="" coords="5,152,187,177"/>
<area shape="rect"  href="classmysqlpp_1_1Exception.html" title="Base class for all MySQL++ custom exceptions." alt="" coords="28,79,165,104"/>
<area shape="rect"  title=" " alt="" coords="45,5,148,31"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for mysqlpp::ConnectionFailed:</div>
<div class="dyncontent">
<div class="center"><img src="classmysqlpp_1_1ConnectionFailed__coll__graph.png" border="0" usemap="#mysqlpp_1_1ConnectionFailed_coll__map" alt="Collaboration graph"/></div>
<map name="mysqlpp_1_1ConnectionFailed_coll__map" id="mysqlpp_1_1ConnectionFailed_coll__map">
<area shape="rect"  title="Exception thrown when there is a problem related to the database server connection." alt="" coords="17,167,199,192"/>
<area shape="rect"  href="classmysqlpp_1_1Exception.html" title="Base class for all MySQL++ custom exceptions." alt="" coords="39,92,176,117"/>
<area shape="rect"  title=" " alt="" coords="5,5,109,31"/>
<area shape="rect"  title=" " alt="" coords="133,5,187,31"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abede9f71e0283af57a7101c0137eaaab"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ConnectionFailed.html#abede9f71e0283af57a7101c0137eaaab">ConnectionFailed</a> (const char *w=&quot;&quot;, int e=0)</td></tr>
<tr class="memdesc:abede9f71e0283af57a7101c0137eaaab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create exception object.  <a href="#abede9f71e0283af57a7101c0137eaaab">More...</a><br /></td></tr>
<tr class="separator:abede9f71e0283af57a7101c0137eaaab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30c67de85288ec8e3fd137155f0a4443"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ConnectionFailed.html#a30c67de85288ec8e3fd137155f0a4443">errnum</a> () const</td></tr>
<tr class="memdesc:a30c67de85288ec8e3fd137155f0a4443"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the error number corresponding to the error message returned by <a class="el" href="classmysqlpp_1_1Exception.html#af59280d82dba0627192a26cdcf53ba96" title="Returns explanation of why exception was thrown.">what()</a>, if any.  <a href="#a30c67de85288ec8e3fd137155f0a4443">More...</a><br /></td></tr>
<tr class="separator:a30c67de85288ec8e3fd137155f0a4443"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classmysqlpp_1_1Exception"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classmysqlpp_1_1Exception')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classmysqlpp_1_1Exception.html">mysqlpp::Exception</a></td></tr>
<tr class="memitem:ac8fcfb052b81644ebf6d966d626e6ca9 inherit pub_methods_classmysqlpp_1_1Exception"><td class="memItemLeft" align="right" valign="top"><a id="ac8fcfb052b81644ebf6d966d626e6ca9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1Exception.html#ac8fcfb052b81644ebf6d966d626e6ca9">Exception</a> (const <a class="el" href="classmysqlpp_1_1Exception.html">Exception</a> &amp;e) MAY_THROW()</td></tr>
<tr class="memdesc:ac8fcfb052b81644ebf6d966d626e6ca9 inherit pub_methods_classmysqlpp_1_1Exception"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create exception object as copy of another. <br /></td></tr>
<tr class="separator:ac8fcfb052b81644ebf6d966d626e6ca9 inherit pub_methods_classmysqlpp_1_1Exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2103d37da48b9824fa4407863aef9e0e inherit pub_methods_classmysqlpp_1_1Exception"><td class="memItemLeft" align="right" valign="top"><a id="a2103d37da48b9824fa4407863aef9e0e"></a>
<a class="el" href="classmysqlpp_1_1Exception.html">Exception</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1Exception.html#a2103d37da48b9824fa4407863aef9e0e">operator=</a> (const <a class="el" href="classmysqlpp_1_1Exception.html">Exception</a> &amp;rhs)  throw ()</td></tr>
<tr class="memdesc:a2103d37da48b9824fa4407863aef9e0e inherit pub_methods_classmysqlpp_1_1Exception"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign another exception object's contents to this one. <br /></td></tr>
<tr class="separator:a2103d37da48b9824fa4407863aef9e0e inherit pub_methods_classmysqlpp_1_1Exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82b1a9a71b10a4b83cd67905689d700d inherit pub_methods_classmysqlpp_1_1Exception"><td class="memItemLeft" align="right" valign="top"><a id="a82b1a9a71b10a4b83cd67905689d700d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1Exception.html#a82b1a9a71b10a4b83cd67905689d700d">~Exception</a> ()  throw ()</td></tr>
<tr class="memdesc:a82b1a9a71b10a4b83cd67905689d700d inherit pub_methods_classmysqlpp_1_1Exception"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy exception object. <br /></td></tr>
<tr class="separator:a82b1a9a71b10a4b83cd67905689d700d inherit pub_methods_classmysqlpp_1_1Exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af59280d82dba0627192a26cdcf53ba96 inherit pub_methods_classmysqlpp_1_1Exception"><td class="memItemLeft" align="right" valign="top"><a id="af59280d82dba0627192a26cdcf53ba96"></a>
virtual const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1Exception.html#af59280d82dba0627192a26cdcf53ba96">what</a> () const  throw ()</td></tr>
<tr class="memdesc:af59280d82dba0627192a26cdcf53ba96 inherit pub_methods_classmysqlpp_1_1Exception"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns explanation of why exception was thrown. <br /></td></tr>
<tr class="separator:af59280d82dba0627192a26cdcf53ba96 inherit pub_methods_classmysqlpp_1_1Exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classmysqlpp_1_1Exception"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classmysqlpp_1_1Exception')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classmysqlpp_1_1Exception.html">mysqlpp::Exception</a></td></tr>
<tr class="memitem:ad9410f221db3876329a168d6c6a0864f inherit pro_methods_classmysqlpp_1_1Exception"><td class="memItemLeft" align="right" valign="top"><a id="ad9410f221db3876329a168d6c6a0864f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1Exception.html#ad9410f221db3876329a168d6c6a0864f">Exception</a> (const char *w=&quot;&quot;)  throw ()</td></tr>
<tr class="memdesc:ad9410f221db3876329a168d6c6a0864f inherit pro_methods_classmysqlpp_1_1Exception"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create exception object. <br /></td></tr>
<tr class="separator:ad9410f221db3876329a168d6c6a0864f inherit pro_methods_classmysqlpp_1_1Exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6bce06d1c5f5a8ace87764ea118e25d inherit pro_methods_classmysqlpp_1_1Exception"><td class="memItemLeft" align="right" valign="top"><a id="ab6bce06d1c5f5a8ace87764ea118e25d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1Exception.html#ab6bce06d1c5f5a8ace87764ea118e25d">Exception</a> (const std::string &amp;w)  throw ()</td></tr>
<tr class="memdesc:ab6bce06d1c5f5a8ace87764ea118e25d inherit pro_methods_classmysqlpp_1_1Exception"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create exception object. <br /></td></tr>
<tr class="separator:ab6bce06d1c5f5a8ace87764ea118e25d inherit pro_methods_classmysqlpp_1_1Exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classmysqlpp_1_1Exception"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classmysqlpp_1_1Exception')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classmysqlpp_1_1Exception.html">mysqlpp::Exception</a></td></tr>
<tr class="memitem:a9d1f31934daa02fdbedfe419be524191 inherit pro_attribs_classmysqlpp_1_1Exception"><td class="memItemLeft" align="right" valign="top"><a id="a9d1f31934daa02fdbedfe419be524191"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1Exception.html#a9d1f31934daa02fdbedfe419be524191">what_</a></td></tr>
<tr class="memdesc:a9d1f31934daa02fdbedfe419be524191 inherit pro_attribs_classmysqlpp_1_1Exception"><td class="mdescLeft">&#160;</td><td class="mdescRight">explanation of why exception was thrown <br /></td></tr>
<tr class="separator:a9d1f31934daa02fdbedfe419be524191 inherit pro_attribs_classmysqlpp_1_1Exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classmysqlpp_1_1Exception.html" title="Base class for all MySQL++ custom exceptions.">Exception</a> thrown when there is a problem related to the database server connection. </p>
<p>This is thrown not just on making the connection, but also on shutdown and when calling certain of <a class="el" href="classmysqlpp_1_1Connection.html" title="Manages the connection to the database server.">Connection</a>'s methods that require a connection when there isn't one. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="abede9f71e0283af57a7101c0137eaaab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abede9f71e0283af57a7101c0137eaaab">&#9670;&nbsp;</a></span>ConnectionFailed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">mysqlpp::ConnectionFailed::ConnectionFailed </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>w</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>e</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create exception object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td>explanation for why the exception was thrown </td></tr>
    <tr><td class="paramname">e</td><td>the error number from the underlying database API </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a30c67de85288ec8e3fd137155f0a4443"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30c67de85288ec8e3fd137155f0a4443">&#9670;&nbsp;</a></span>errnum()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int mysqlpp::ConnectionFailed::errnum </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return the error number corresponding to the error message returned by <a class="el" href="classmysqlpp_1_1Exception.html#af59280d82dba0627192a26cdcf53ba96" title="Returns explanation of why exception was thrown.">what()</a>, if any. </p>
<p>If the error number is 0, it means that the error message doesn't come from the underlying database API, but rather from MySQL++ itself. This happens when an error condition is detected up at this higher level instead of letting the underlying database API do it. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="exceptions_8h_source.html">exceptions.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jul 21 2019 05:32:21 for MySQL++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>