• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Class system_error</title>
5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../index.html" title="Chapter 1. Boost.Log v2">
8<link rel="up" href="../../log/reference.html#header.boost.log.exceptions_hpp" title="Header &lt;boost/log/exceptions.hpp&gt;">
9<link rel="prev" href="setup_error.html" title="Class setup_error">
10<link rel="next" href="unexpected_call.html" title="Class unexpected_call">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td></tr></table>
14<hr>
15<div class="spirit-nav">
16<a accesskey="p" href="setup_error.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../log/reference.html#header.boost.log.exceptions_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="unexpected_call.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
17</div>
18<div class="refentry">
19<a name="boost.log.system_error"></a><div class="titlepage"></div>
20<div class="refnamediv">
21<h2><span class="refentrytitle">Class system_error</span></h2>
22<p>boost::log::system_error — Exception class that is used to indicate underlying OS API errors. </p>
23</div>
24<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
25<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../log/reference.html#header.boost.log.exceptions_hpp" title="Header &lt;boost/log/exceptions.hpp&gt;">boost/log/exceptions.hpp</a>&gt;
26
27</span>
28<span class="keyword">class</span> <a class="link" href="system_error.html" title="Class system_error">system_error</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">system_error</span> <span class="special">{</span>
29<span class="keyword">public</span><span class="special">:</span>
30  <span class="comment">// <a class="link" href="system_error.html#boost.log.system_errorconstruct-copy-destruct">construct/copy/destruct</a></span>
31  <a class="link" href="system_error.html#idm46079581321456-bb"><span class="identifier">system_error</span></a><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
32  <a class="link" href="system_error.html#idm46079581319472-bb"><span class="special">~</span><span class="identifier">system_error</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
33<span class="special">}</span><span class="special">;</span></pre></div>
34<div class="refsect1">
35<a name="idm44984887704448"></a><h2>Description</h2>
36<div class="refsect2">
37<a name="idm44984887704032"></a><h3>
38<a name="boost.log.system_errorconstruct-copy-destruct"></a><code class="computeroutput">system_error</code>
39        public
40       construct/copy/destruct</h3>
41<div class="orderedlist"><ol class="orderedlist" type="1">
42<li class="listitem">
43<pre class="literallayout"><a name="idm46079581321456-bb"></a><span class="identifier">system_error</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> code<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">const</span> <span class="special">&amp;</span> descr<span class="special">)</span><span class="special">;</span></pre>
44<p>Initializing constructor. Creates an exception with the specified error message. </p>
45</li>
46<li class="listitem">
47<pre class="literallayout"><a name="idm46079581319472-bb"></a><span class="special">~</span><span class="identifier">system_error</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
48<p>Destructor </p>
49</li>
50</ol></div>
51</div>
52</div>
53</div>
54<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
55<td align="left"></td>
56<td align="right"><div class="copyright-footer">Copyright © 2007-2019 Andrey Semashev<p>
57        Distributed under the Boost Software License, Version 1.0. (See accompanying
58        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>).
59      </p>
60</div></td>
61</tr></table>
62<hr>
63<div class="spirit-nav">
64<a accesskey="p" href="setup_error.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../log/reference.html#header.boost.log.exceptions_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="unexpected_call.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
65</div>
66</body>
67</html>
68