We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 213b7c6 commit 946d6d5Copy full SHA for 946d6d5
book/src/error-errorkind.md
@@ -39,6 +39,10 @@ yourself:
39
40
```rust
41
impl Fail for MyError {
42
+ fn name(&self) -> Option<&str> {
43
+ self.inner.name()
44
+ }
45
+
46
fn cause(&self) -> Option<&Fail> {
47
self.inner.cause()
48
}
book/src/string-custom-error.md
@@ -20,6 +20,10 @@ pub struct MyError {
20
21
22
23
24
25
26
27
28
29
@@ -105,6 +109,10 @@ pub struct MyError {
105
109
106
110
107
111
112
113
114
115
108
116
117
118
0 commit comments