28 Commits

Author SHA1 Message Date
David Tolnay
7fdf38ea1b
Construct ContextError with error and context in consistent order 2019-10-05 17:15:31 -04:00
David Tolnay
1ee433706a
Use Self in signatures of Error constructors 2019-10-05 17:10:56 -04:00
David Tolnay
9e2e3c375f
Accept trailing comma in macros 2019-10-05 17:10:53 -04:00
David Tolnay
f54adae5ef
Rename error macro to anyhow 2019-10-05 16:46:12 -04:00
David Tolnay
e4135a5705
Add acknowledgement of fehler::Exception 2019-10-05 16:24:42 -04:00
David Tolnay
d28ff29f57
Add readme stub 2019-10-05 16:06:32 -04:00
David Tolnay
79c3776e92
Add placeholder std feature 2019-10-05 16:04:13 -04:00
David Tolnay
31aedf1c9d
Rename crate to anyhow
"Any" conveys an error type that can represent any error, and "how"
suggests how a function failed. 6 characters is in the ideal range for
crate name length. Both anyhow::Error and anyhow::Result are easy to
pronounce.
2019-10-05 15:54:19 -04:00
David Tolnay
f972193a06
Rename Errors to Chain 2019-10-05 15:44:01 -04:00
David Tolnay
23a0032a35
Set up Travis build 2019-10-05 15:43:59 -04:00
David Tolnay
dc003568d7
Remove &E argument from with_context signature 2019-10-05 15:43:58 -04:00
David Tolnay
895d3834e5
Rename as_error to as_dyn_error 2019-10-05 15:43:55 -04:00
David Tolnay
eac05d1c69
Remove trait bounds from MessageError struct
Trait bounds are for behavior, not data. It is sufficient for the bounds
to be on the impl blocks i.e. the behavior only.
2019-10-05 00:23:05 -04:00
David Tolnay
7dcc85121b
Move trait bounds to where-clauses
I find it more readable how this appears in rustdoc.
2019-10-05 00:23:03 -04:00
David Tolnay
8da8c97e56
Add a Result type alias 2019-10-05 00:23:02 -04:00
David Tolnay
df575e5adb
Un-wrap backtrace disabled message for easier grepping 2019-10-05 00:23:01 -04:00
David Tolnay
97450667a6
Wrap comments to 80 columns 2019-10-05 00:22:59 -04:00
David Tolnay
94d944c9e0
Change all remaining exception related wording 2019-10-05 00:22:58 -04:00
David Tolnay
68dcc845e9
Rename InnerException to ErrorImpl 2019-10-05 00:22:57 -04:00
David Tolnay
5535ffc436
Rename Exception to Error 2019-10-05 00:22:55 -04:00
David Tolnay
7afc190810
Import std::error::Error as StdError
To avoid name collisions when renaming Exception to Error.
2019-10-05 00:22:51 -04:00
David Tolnay
2000930a19
Rename exception module to error 2019-10-05 00:22:30 -04:00
David Tolnay
27b8f244d1
Rename throw macro to bail 2019-10-05 00:22:29 -04:00
David Tolnay
61cf951a14
Format with rustfmt 2019-09-08 2019-10-05 00:22:25 -04:00
David Tolnay
b47a6fde74
Drop the dependency on a macros crate 2019-10-04 23:14:09 -04:00
David Tolnay
727f36ffd0
Import implementation from fehler 1.0.0-alpha.1 2019-10-04 23:13:55 -04:00
David Tolnay
7f711bbda1
Dual mit OR apache license 2019-10-04 23:10:09 -04:00
David Tolnay
138ec41c16
Initial commit 2019-10-04 23:09:32 -04:00