Welcome to mirror list, hosted at ThFree Co, Russian Federation.

structllfio__v2__xxx_1_1error__info.html - github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fbc2fbf266849f4c8898fbd2ac0cee7e46450b69 (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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LLFIO: llfio_v2_xxx::error_info Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.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">LLFIO
   &#160;<span id="projectnumber">v2.00 late beta</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<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>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('structllfio__v2__xxx_1_1error__info.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- 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 class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="structllfio__v2__xxx_1_1error__info-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">llfio_v2_xxx::error_info Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The cause of the failure of an operation in LLFIO.  
 <a href="structllfio__v2__xxx_1_1error__info.html#details">More...</a></p>

<p><code>#include &quot;status_code.hpp&quot;</code></p>
<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:a3831950954e8d008630dcc6e0e1dadf4"><td class="memItemLeft" align="right" valign="top"><a id="a3831950954e8d008630dcc6e0e1dadf4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structllfio__v2__xxx_1_1error__info.html#a3831950954e8d008630dcc6e0e1dadf4">error_info</a> ()=default</td></tr>
<tr class="memdesc:a3831950954e8d008630dcc6e0e1dadf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:a3831950954e8d008630dcc6e0e1dadf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb88c6b0d4a2870c0ed4222538ee8418"><td class="memItemLeft" align="right" valign="top"><a id="aeb88c6b0d4a2870c0ed4222538ee8418"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>error_info</b> (std::error_code _ec)</td></tr>
<tr class="separator:aeb88c6b0d4a2870c0ed4222538ee8418"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10b1a5cbfcc4dcdbd5bace417c1583c5"><td class="memItemLeft" align="right" valign="top"><a id="a10b1a5cbfcc4dcdbd5bace417c1583c5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structllfio__v2__xxx_1_1error__info.html#a10b1a5cbfcc4dcdbd5bace417c1583c5">OUTCOME_TEMPLATE</a> (class ErrorCondEnum) OUTCOME_TREQUIRES(OUTCOME_TPRED(std</td></tr>
<tr class="memdesc:a10b1a5cbfcc4dcdbd5bace417c1583c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implicit construct from an error condition enum. <br /></td></tr>
<tr class="separator:a10b1a5cbfcc4dcdbd5bace417c1583c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdaff59eb9c0392ffa41a0ddb158193a"><td class="memItemLeft" align="right" valign="top"><a id="acdaff59eb9c0392ffa41a0ddb158193a"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structllfio__v2__xxx_1_1error__info.html#acdaff59eb9c0392ffa41a0ddb158193a">value</a> () const noexcept</td></tr>
<tr class="memdesc:acdaff59eb9c0392ffa41a0ddb158193a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the value of the error code. <br /></td></tr>
<tr class="separator:acdaff59eb9c0392ffa41a0ddb158193a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9037be55f1038e6ebffe2f98e5b1b6a5"><td class="memItemLeft" align="right" valign="top"><a id="a9037be55f1038e6ebffe2f98e5b1b6a5"></a>
filesystem::path&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structllfio__v2__xxx_1_1error__info.html#a9037be55f1038e6ebffe2f98e5b1b6a5">path1</a> () const</td></tr>
<tr class="memdesc:a9037be55f1038e6ebffe2f98e5b1b6a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve any first path associated with this failure. Note this only works if called from the same thread as where the failure occurred. <br /></td></tr>
<tr class="separator:a9037be55f1038e6ebffe2f98e5b1b6a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bc1649b05341a45c414c48e3dd94f38"><td class="memItemLeft" align="right" valign="top"><a id="a6bc1649b05341a45c414c48e3dd94f38"></a>
filesystem::path&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structllfio__v2__xxx_1_1error__info.html#a6bc1649b05341a45c414c48e3dd94f38">path2</a> () const</td></tr>
<tr class="memdesc:a6bc1649b05341a45c414c48e3dd94f38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve any second path associated with this failure. Note this only works if called from the same thread as where the failure occurred. <br /></td></tr>
<tr class="separator:a6bc1649b05341a45c414c48e3dd94f38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ba6efb57025c79297c3a3061ae78bf9"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structllfio__v2__xxx_1_1error__info.html#a3ba6efb57025c79297c3a3061ae78bf9">message</a> () const</td></tr>
<tr class="separator:a3ba6efb57025c79297c3a3061ae78bf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab08549050a7e020a9939b1961ed1ae2c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structllfio__v2__xxx_1_1error__info.html#ab08549050a7e020a9939b1961ed1ae2c">throw_exception</a> () const</td></tr>
<tr class="separator:ab08549050a7e020a9939b1961ed1ae2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a005a8988d90a60851592b9ce46f43c68"><td class="memItemLeft" align="right" valign="top"><a id="a005a8988d90a60851592b9ce46f43c68"></a>
std::error_code&#160;</td><td class="memItemRight" valign="bottom"><b>make_error_code</b> (<a class="el" href="structllfio__v2__xxx_1_1error__info.html">error_info</a> ei)</td></tr>
<tr class="separator:a005a8988d90a60851592b9ce46f43c68"><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>The cause of the failure of an operation in LLFIO. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a3ba6efb57025c79297c3a3061ae78bf9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ba6efb57025c79297c3a3061ae78bf9">&#9670;&nbsp;</a></span>message()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string llfio_v2_xxx::error_info::message </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>Retrieve a descriptive message for this failure, possibly with paths and stack backtraces. Extra detail only appears if called from the same thread as where the failure occurred. </p>
<div class="fragment"><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;  {</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    std::string ret(ec.message());</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;<span class="preprocessor">#if !LLFIO_DISABLE_PATHS_IN_FAILURE_INFO</span></div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    detail::append_path_info(*<span class="keyword">this</span>, ret);</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;  }</div>
</div><!-- fragment -->
</div>
</div>
<a id="ab08549050a7e020a9939b1961ed1ae2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab08549050a7e020a9939b1961ed1ae2c">&#9670;&nbsp;</a></span>throw_exception()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void llfio_v2_xxx::error_info::throw_exception </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>Throw this failure as a C++ exception. Firstly if the error code matches any of the standard C++ exception types e.g. <code>bad_alloc</code>, we throw those types using the string from <code>message()</code> where possible. We then will throw an <code>error</code> exception type. </p>
<div class="fragment"><div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;{</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;  std::string msg;</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;  <span class="keywordflow">try</span></div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;  {</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;    msg = <a class="code" href="structllfio__v2__xxx_1_1error__info.html#a3ba6efb57025c79297c3a3061ae78bf9">message</a>();</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;  }</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;  <span class="keywordflow">catch</span>(...)</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;  {</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;  }</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;  OUTCOME_V2_NAMESPACE::try_throw_std_exception_from_error(ec, msg);</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;  <span class="keywordflow">throw</span> error(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>include/llfio/v2.0/status_code.hpp</li>
<li>include/llfio/v2.0/<a class="el" href="handle_8hpp.html">handle.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="astructllfio__v2__xxx_1_1error__info_html_a3ba6efb57025c79297c3a3061ae78bf9"><div class="ttname"><a href="structllfio__v2__xxx_1_1error__info.html#a3ba6efb57025c79297c3a3061ae78bf9">llfio_v2_xxx::error_info::message</a></div><div class="ttdeci">std::string message() const</div><div class="ttdef"><b>Definition:</b> status_code.hpp:442</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacellfio__v2__xxx.html">llfio_v2_xxx</a></li><li class="navelem"><a class="el" href="structllfio__v2__xxx_1_1error__info.html">error_info</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>