Skip to content

Commit 440e2c6

Browse files
authored
Add chapter for error handling (#19)
* Draft introduction section * Add sections for From<E>, and partially CanRaiseError<E> * Draft context-generic error raisers * Finish drafting error handling chapter
1 parent 3c3b008 commit 440e2c6

File tree

3 files changed

+756
-7
lines changed

3 files changed

+756
-7
lines changed

content/SUMMARY.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121
# Design Patterns
2222

2323
- [Associated Types](associated-types.md)
24-
- [Error Handling]()
25-
- [`HasErrorType`]()
26-
- [From Errors]()
27-
- [`CanRaiseError`]()
24+
- [Error Handling](error-handling.md)
25+
- [Delegated Error Raiser]()
2826
- [Error Wrapping]()
2927
- [Component Presets]()
3028
- [Trait-Generic Providers]()

content/associated-types.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,6 @@ make use of a different time type, such as
593593
# extern crate anyhow;
594594
# extern crate datetime;
595595
#
596-
# use std::time::Instant;
597-
#
598596
# use cgp::prelude::*;
599597
# use anyhow::Error;
600598
# use datetime::LocalDateTime;

0 commit comments

Comments
 (0)