This crate is used internally by TinyChain. It provides a generic error type TCError which can be mapped to common HTTP error codes and supports serialization and deserialization with destream.

Example: ```rust use tc_error::*;

fn expecttrue(value: bool) -> TCResult<()> { if value { Ok(()) } else { Err(TCError::badrequest("expected true but found", value)) } }

asserteq!(expecttrue(true), Ok(())); ```

For more information on TinyChain, see: http://github.com/haydnv/tinychain