5 :Status: production-ready
6 :Documentation: http://tailhook.github.io/quick-error/
8 A macro which makes error types pleasant to write.
12 * Define enum type with arbitrary parameters
13 * Concise notation of ``Display`` and ``Error`` traits
14 * Full control of ``Display`` and ``Error`` trait implementation
15 * Any number of ``From`` traits
16 * Support for all enum-variants ``Unit``, ``Tuple`` and ``Struct``
18 Here is the comprehensive example:
27 display("I/O error: {}", err)
30 Other(descr: &'static str) {
31 display("Error {}", descr)
33 IoAt { place: &'static str, err: io::Error } {
35 display(me) -> ("io error at {}: {}", place, err)
38 err: io::Error::new(io::ErrorKind::Other, s)
51 Licensed under either of
53 * Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
54 * MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT)
62 Unless you explicitly state otherwise, any contribution intentionally
63 submitted for inclusion in the work by you, as defined in the Apache-2.0
64 license, shall be dual licensed as above, without any additional terms or