mirror of
https://github.com/haraldh/chainerror.git
synced 2025-01-31 00:56:41 +01:00
parent
b58c980582
commit
72e283c30c
|
@ -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
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue