title: Exception In boost-beast
body: <p>I use Boost::Beast and i got somme exception message for exemple : resolve: No such host is known.
  I want in my code to  print i message more significant that can a simple user get a idea what this message means .
  how i can do that?</p>
  <p>that is the exemple that i chose to work with in the first but thy don't work for me</p>
  <pre><code> if (ec &amp;&amp; ec != beast::errc::not_connected) {
        beast::system_error{ ec };
        std::cout &lt;&lt; &quot;beast::errc::not_connected&quot; &lt;&lt; ec &lt;&lt; &quot; with explanatory message &quot; &lt;&lt; ec.message() &lt;&lt; std::endl;
      }
      if (ec &amp;&amp; ec != beast::errc::no_buffer_space) {
        beast::system_error{ ec };
        std::cout &lt;&lt; &quot;beast::errc::no_buffer_space&quot; &lt;&lt; ec &lt;&lt; &quot; with explanatory message &quot; &lt;&lt; ec.message() &lt;&lt; std::endl;
  
      }
      if (ec &amp;&amp; ec != beast::errc::timed_out) {
        beast::system_error{ ec };
        std::cout &lt;&lt; &quot;beast::errc::timed_out&quot; &lt;&lt; ec &lt;&lt; &quot; with explanatory message &quot; &lt;&lt; ec.message() &lt;&lt; std::endl;
  
      }
      if (ec &amp;&amp; ec != beast::errc::no_buffer_space) {
        beast::system_error{ ec };
        std::cout &lt;&lt; &quot;beast::errc::no_buffer_space&quot; &lt;&lt; ec &lt;&lt; &quot; with explanatory message &quot; &lt;&lt; ec.message() &lt;&lt; std::endl;
  
      }
      if (ec &amp;&amp; ec != beast::errc::stream_timeout) {
        beast::system_error{ ec };
        std::cout &lt;&lt; &quot;beast::errc::stream_timeout&quot; &lt;&lt; ec &lt;&lt; &quot; with explanatory message &quot; &lt;&lt; ec.message() &lt;&lt; std::endl;
  
      }
  </code></pre>