📄 classexception.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>Exception class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.15 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</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> </center>
<hr><h1>Exception Class Reference</h1><code>#include <<a class="el" href="exception_8h-source.html">exception.h</a>></code>
<p>
<p>Inheritance diagram for Exception:
<p><center><img src="classException.png" usemap="#Exception_map" border="0"></center>
<map name="Exception_map">
<area href="classAuthenticationFailedException.html" alt="AuthenticationFailedException" shape="rect" coords="0,56,282,80">
<area href="classDecodeException.html" alt="DecodeException" shape="rect" coords="292,56,574,80">
<area href="classIOException.html" alt="IOException" shape="rect" coords="584,56,866,80">
<area href="classSHA1Exception.html" alt="SHA1Exception" shape="rect" coords="876,56,1158,80">
<area href="classSSLException.html" alt="SSLException" shape="rect" coords="1168,56,1450,80">
<area href="classTransferException.html" alt="TransferException" shape="rect" coords="1460,56,1742,80">
<area href="classUnsupportedAuthenticationMechanismException.html" alt="UnsupportedAuthenticationMechanismException" shape="rect" coords="1752,56,2034,80">
</map>
<a href="classException-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classException.html#a0">Exception</a> (const string &<a class="el" href="classException.html#n0">msg</a>, const string &<a class="el" href="classException.html#n1">method</a>, unsigned int <a class="el" href="classException.html#n2">index</a>)</td></tr>
<tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classException.html#a1">~Exception</a> () throw ()</td></tr>
<tr><td nowrap align=right valign=top>const char * </td><td valign=bottom><a class="el" href="classException.html#a2">what</a> ()</td></tr>
<tr><td nowrap align=right valign=top>const char * </td><td valign=bottom><a class="el" href="classException.html#a3">get_method</a> ()</td></tr>
<tr><td nowrap align=right valign=top>unsigned int </td><td valign=bottom><a class="el" href="classException.html#a4">get_index</a> ()</td></tr>
<tr><td nowrap align=right valign=top>const char * </td><td valign=bottom><a class="el" href="classException.html#a5">get_msg</a> ()</td></tr>
<tr><td nowrap align=right valign=top>const char * </td><td valign=bottom><a class="el" href="classException.html#a6">get_name</a> ()</td></tr>
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top>string </td><td valign=bottom><a class="el" href="classException.html#n0">msg</a></td></tr>
<tr><td nowrap align=right valign=top>string </td><td valign=bottom><a class="el" href="classException.html#n1">method</a></td></tr>
<tr><td nowrap align=right valign=top>unsigned int </td><td valign=bottom><a class="el" href="classException.html#n2">index</a></td></tr>
<tr><td nowrap align=right valign=top>string </td><td valign=bottom><a class="el" href="classException.html#n3">name</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This is the base class for all exceptions that will be thrown by libsmtp++. All child classes should set this->name to the name of the exception in the constructor.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a name="a0" doxytag="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"> Exception::Exception </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const string & </td>
<td class="mdname" nowrap> <em>msg</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const string & </td>
<td class="mdname" nowrap> <em>method</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>index</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Constructor.<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>msg</em> </td><td>
The error msg. </td></tr>
<tr><td valign=top><em>method</em> </td><td>
The method from where this exception was thrown. </td></tr>
<tr><td valign=top><em>index</em> </td><td>
An integer that uniquely identifies this exception inside the method it was thrown from. </td></tr>
</table>
</dl> </td>
</tr>
</table>
<a name="a1" doxytag="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"> virtual Exception::~Exception </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap> throw ()<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Destructor. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a4" doxytag="Exception::get_index"></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"> unsigned int Exception::get_index </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </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>
Returns the index of this exception that uniquely identifies it inside the method it was thrown from.
<p>
<dl compact><dt><b>
Returns: </b><dd>
The index of theis exception. </dl> </td>
</tr>
</table>
<a name="a3" doxytag="Exception::get_method"></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"> const char* Exception::get_method </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </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>
Returns the method where this exception was thrown from.
<p>
<dl compact><dt><b>
Returns: </b><dd>
The method where this exception was thrown from. </dl> </td>
</tr>
</table>
<a name="a5" doxytag="Exception::get_msg"></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"> const char* Exception::get_msg </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </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>
Returns an informal error message.
<p>
<dl compact><dt><b>
Returns: </b><dd>
The error message. </dl> </td>
</tr>
</table>
<a name="a6" doxytag="Exception::get_name"></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"> const char* Exception::get_name </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </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>
Returns the name of this exception.
<p>
<dl compact><dt><b>
Returns: </b><dd>
The name of this exception. </dl> </td>
</tr>
</table>
<a name="a2" doxytag="Exception::what"></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"> const char* Exception::what </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </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>
Returns an informal message about the reason why this exception was thrown.
<p>
<dl compact><dt><b>
Returns: </b><dd>
The reason why this exception was thrown. </dl> </td>
</tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="n2" doxytag="Exception::index"></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"> unsigned int Exception::index<code> [protected]</code>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
An integer that uniquely identifies this exception inside the method it was thrown from. </td>
</tr>
</table>
<a name="n1" doxytag="Exception::method"></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"> string Exception::method<code> [protected]</code>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
The method this exception was thrown from. </td>
</tr>
</table>
<a name="n0" doxytag="Exception::msg"></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"> string Exception::msg<code> [protected]</code>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
The error message. </td>
</tr>
</table>
<a name="n3" doxytag="Exception::name"></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"> string Exception::name<code> [protected]</code>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
The name of this exception. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="exception_8h-source.html">exception.h</a></ul>
<hr><address align="right"><small>Generated on Tue Jan 28 17:09:59 2003 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.15 </small></address>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -