Skip to content

Commit 38ea6e8

Browse files
committed
Deployed b8c5668 to dev with MkDocs 1.6.1 and mike 2.1.1
1 parent b8c5668 commit 38ea6e8

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

dev/api/index.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,8 +1779,16 @@ <h2 id="system-apis">System APIs</h2>
17791779
<p>Constructs a <code>std::system_error</code> object with the description of the form <pre><code class="language-cpp">&lt;message>: &lt;system-message>
17801780
</code></pre> where <code>&lt;message></code> is the formatted message and <code>&lt;system-message></code> is the system message corresponding to the error code. <code>error_code</code> is a Windows error code as given by <code>GetLastError</code>. If <code>error_code</code> is not a valid error code such as -1, the system message will look like "error -1".</p>
17811781
<p><b>Example</b>: <pre><code class="language-cpp">// This throws a system_error with the description
1782-
// cannot open file 'madeup': The system cannot find the file
1783-
</code></pre> specified. // or similar (system message may vary). const char *filename = "madeup"; LPOFSTRUCT of = LPOFSTRUCT(); HFILE file = OpenFile(filename, &of, OF_READ); if (file == HFILE_ERROR) { throw fmt::windows_error(GetLastError(), "cannot open file '{}'", filename); } </p>
1782+
// cannot open file 'foo': The system cannot find the file specified.
1783+
// or similar (system message may vary) if the file doesn't exist.
1784+
const char *filename = "foo";
1785+
LPOFSTRUCT of = LPOFSTRUCT();
1786+
HFILE file = OpenFile(filename, &of, OF_READ);
1787+
if (file == HFILE_ERROR) {
1788+
throw fmt::windows_error(GetLastError(),
1789+
"cannot open file '{}'", filename);
1790+
}
1791+
</code></pre> </p>
17841792
</div>
17851793
</div>
17861794
<p><a id="ostream-api"></a></p>

dev/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)