doc update

generated from commit 8c166b5156
This commit is contained in:
Harald Hoyer 2018-12-21 16:10:53 +01:00
parent b58c980582
commit 72e283c30c
4 changed files with 8 additions and 2 deletions

View file

@ -7814,6 +7814,9 @@ src/main.rs:40: func1 error calling func2
[…}
</code></pre>
<p>which gives us a lot more detail.</p>
<p>To create your own Errors, you might find <a href="https://crates.io">crates</a> which crate enum <code>Display+Debug</code> via derive macros.</p>
<p>Also noteworthy is <a href="https://crates.io/crates/custom_error">custom_error</a> to define your custom errors,
which can then be used with <code>chainerror</code>.</p>
<pre><pre class="playpen"><code class="language-rust">use crate::chainerror::*;
use std::error::Error;
use std::io;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -153,6 +153,9 @@ src/main.rs:40: func1 error calling func2
[…}
</code></pre>
<p>which gives us a lot more detail.</p>
<p>To create your own Errors, you might find <a href="https://crates.io">crates</a> which crate enum <code>Display+Debug</code> via derive macros.</p>
<p>Also noteworthy is <a href="https://crates.io/crates/custom_error">custom_error</a> to define your custom errors,
which can then be used with <code>chainerror</code>.</p>
<pre><pre class="playpen"><code class="language-rust">use crate::chainerror::*;
use std::error::Error;
use std::io;