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.
std::error::Error
1 parent a68e7ff commit 23e9796Copy full SHA for 23e9796
src/language/exception-handling.md
@@ -54,6 +54,9 @@ The equivalent to the .NET `Exception.InnerException` property is the
54
implementation for `Error::source()`, the blanket (default) implementation
55
returns a `None`.
56
57
+> Note: Unlike in C#, in Rust it is not strictly required for an error to implement `std::error::Error`
58
+> (it can be used in `Result` even without that). But it is strongly encouraged, especially for public errors.
59
+
60
## Raising exceptions
61
62
To raise an exception in C#, throw an instance of the exception:
0 commit comments