Insane_DNS/libraries/asio-1.28.1/doc/asio/reference/error_code.html

274 lines
9.1 KiB
HTML
Raw Permalink Normal View History

2023-10-24 21:59:30 -04:00
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>error_code</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../index.html" title="Asio">
<link rel="up" href="../reference.html" title="Reference">
<link rel="prev" href="error_category/_error_category.html" title="error_category::~error_category">
<link rel="next" href="error_code/assign.html" title="error_code::assign">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="error_category/_error_category.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../home.png" alt="Home"></a><a accesskey="n" href="error_code/assign.html"><img src="../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="asio.reference.error_code"></a><a class="link" href="error_code.html" title="error_code">error_code</a>
</h3></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.error_code"></a>
</p>
<p>
Class to represent an error code value.
</p>
<pre class="programlisting"><span class="keyword">class</span> <span class="identifier">error_code</span>
</pre>
<h5>
<a name="asio.reference.error_code.h0"></a>
<span><a name="asio.reference.error_code.types"></a></span><a class="link" href="error_code.html#asio.reference.error_code.types">Types</a>
</h5>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
<p>
Name
</p>
</th>
<th>
<p>
Description
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td>
<p>
<a class="link" href="error_code__unspecified_bool_type_t.html" title="error_code::unspecified_bool_type_t"><span class="bold"><strong>unspecified_bool_type_t</strong></span></a>
</p>
</td>
<td>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="error_code/unspecified_bool_type.html" title="error_code::unspecified_bool_type"><span class="bold"><strong>unspecified_bool_type</strong></span></a>
</p>
</td>
<td>
</td>
</tr>
</tbody>
</table></div>
<h5>
<a name="asio.reference.error_code.h1"></a>
<span><a name="asio.reference.error_code.member_functions"></a></span><a class="link" href="error_code.html#asio.reference.error_code.member_functions">Member
Functions</a>
</h5>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
<p>
Name
</p>
</th>
<th>
<p>
Description
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td>
<p>
<a class="link" href="error_code/assign.html" title="error_code::assign"><span class="bold"><strong>assign</strong></span></a>
</p>
</td>
<td>
<p>
Assign a new error value.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="error_code/category.html" title="error_code::category"><span class="bold"><strong>category</strong></span></a>
</p>
</td>
<td>
<p>
Get the error category.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="error_code/clear.html" title="error_code::clear"><span class="bold"><strong>clear</strong></span></a>
</p>
</td>
<td>
<p>
Clear the error value to the default.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="error_code/error_code.html" title="error_code::error_code"><span class="bold"><strong>error_code</strong></span></a> <span class="silver">[constructor]</span>
</p>
</td>
<td>
<p>
Default constructor. <br> <span class="silver"></span><br> Construct with specific error
code and category. <br> <span class="silver"></span><br> Construct from an error code enum.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="error_code/message.html" title="error_code::message"><span class="bold"><strong>message</strong></span></a>
</p>
</td>
<td>
<p>
Get the message associated with the error.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="error_code/operator_unspecified_bool_type.html" title="error_code::operator unspecified_bool_type"><span class="bold"><strong>operator unspecified_bool_type</strong></span></a>
</p>
</td>
<td>
<p>
Operator returns non-null if there is a non-success error code.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="error_code/operator_not_.html" title="error_code::operator!"><span class="bold"><strong>operator!</strong></span></a>
</p>
</td>
<td>
<p>
Operator to test if the error represents success.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="error_code/unspecified_bool_true.html" title="error_code::unspecified_bool_true"><span class="bold"><strong>unspecified_bool_true</strong></span></a> <span class="silver">[static]</span>
</p>
</td>
<td>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="error_code/value.html" title="error_code::value"><span class="bold"><strong>value</strong></span></a>
</p>
</td>
<td>
<p>
Get the error value.
</p>
</td>
</tr>
</tbody>
</table></div>
<h5>
<a name="asio.reference.error_code.h2"></a>
<span><a name="asio.reference.error_code.friends"></a></span><a class="link" href="error_code.html#asio.reference.error_code.friends">Friends</a>
</h5>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
<p>
Name
</p>
</th>
<th>
<p>
Description
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td>
<p>
<a class="link" href="error_code/operator_not__eq_.html" title="error_code::operator!="><span class="bold"><strong>operator!=</strong></span></a>
</p>
</td>
<td>
<p>
Inequality operator to compare two error objects.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="error_code/operator_eq__eq_.html" title="error_code::operator=="><span class="bold"><strong>operator==</strong></span></a>
</p>
</td>
<td>
<p>
Equality operator to compare two error objects.
</p>
</td>
</tr>
</tbody>
</table></div>
<h5>
<a name="asio.reference.error_code.h3"></a>
<span><a name="asio.reference.error_code.requirements"></a></span><a class="link" href="error_code.html#asio.reference.error_code.requirements">Requirements</a>
</h5>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/error_code.hpp</code>
</p>
<p>
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
</p>
</div>
<div class="copyright-footer">Copyright © 2003-2023 Christopher M. Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="error_category/_error_category.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../home.png" alt="Home"></a><a accesskey="n" href="error_code/assign.html"><img src="../../next.png" alt="Next"></a>
</div>
</body>
</html>